MCPcopy Create free account
hub / github.com/Nuitka/Nuitka / getCodeObjectAccessCode

Function getCodeObjectAccessCode

nuitka/code_generation/CodeObjectCodes.py:142–149  ·  view source on GitHub ↗
(code_object, context)

Source from the content-addressed store, hash-verified

140
141
142def getCodeObjectAccessCode(code_object, context):
143 if isExperimental("new-code-objects"):
144 return (
145 "USE_CODE_OBJECT(tstate, %s, module_filename_obj)"
146 % context.getConstantCode(code_object)
147 )
148 else:
149 return context.getCodeObjectHandle(code_object)
150
151
152# Part of "Nuitka", an optimizing Python compiler that is compatible and

Callers 5

getFunctionMakerCodeFunction · 0.85
getGeneratorObjectCodeFunction · 0.85
getCoroutineObjectCodeFunction · 0.85
getAsyncgenObjectCodeFunction · 0.85

Calls 3

isExperimentalFunction · 0.90
getConstantCodeMethod · 0.45
getCodeObjectHandleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…