MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __call__

Method __call__

tools/python-3.11.9-amd64/Lib/codeop.py:120–129  ·  view source on GitHub ↗
(self, source, filename, symbol, **kwargs)

Source from the content-addressed store, hash-verified

118 self.flags = PyCF_DONT_IMPLY_DEDENT | PyCF_ALLOW_INCOMPLETE_INPUT
119
120 def __call__(self, source, filename, symbol, **kwargs):
121 flags = self.flags
122 if kwargs.get('incomplete_input', True) is False:
123 flags &= ~PyCF_DONT_IMPLY_DEDENT
124 flags &= ~PyCF_ALLOW_INCOMPLETE_INPUT
125 codeob = compile(source, filename, symbol, flags, True)
126 for feature in _features:
127 if codeob.co_flags & feature.compiler_flag:
128 self.flags |= feature.compiler_flag
129 return codeob
130
131class CommandCompiler:
132 """Instances of this class have __call__ methods identical in

Callers

nothing calls this directly

Calls 2

compileFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected