Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ImportFrom alias Expr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpOr Call AttributeLoad NameLoad attr NameLoad CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If CompareEq NameLoad Str body Assert BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assert BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Assert NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str NameLoad Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad Num Call NameLoad keyword NameLoad NameLoad IfExp NameLoad Num Num If CompareIsNot NameLoad NameLoad body Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str NameLoad NameLoad NameLoad IfExp NameLoad Num Num If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad Num keyword NameLoad Call NameLoad keyword NameLoad keyword Str NameLoad NameLoad IfExp NameLoad Num Num Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assert BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad Assert NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str NameLoad Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad Num Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad keyword Str NameLoad NameLoad Call AttributeLoad NameLoad attr Str IfExp NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assert CompareIsNot NameLoad NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore Str Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str Str BinOpAdd Str NameLoad NameLoad Call NameLoad NameLoad Num Call NameLoad keyword NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str BinOpMod Str NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call NameLoad BinOpMod NameLoad Dict Str Str Str Str Str Str Str BinOpMod Str NameLoad NameLoad Call NameLoad NameLoad Num keyword NameLoad Call NameLoad keyword NameLoad keyword Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str If CompareLt NameLoad Num body Expr Call NameLoad BinOpMod Str Dict Str Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Num CompareLt NameLoad Num body Expr Call NameLoad BinOpMod Str Dict Str Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str If CompareLt NameLoad Num body Expr Call NameLoad BinOpMod Str Dict Str Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Num CompareLt NameLoad Num body Expr Call NameLoad BinOpMod Str Dict Str Call AttributeLoad NameLoad attr orelse Expr Call NameLoad BinOpMod Str Dict Str NameLoad decorator_list
N/A N/A  Frame codes

This is about frame stacks and their management. There are different kinds
of frames for different uses.
 nuitka.PythonVersions python_version N/A Contexts Emission ExceptionCodes getTracebackMakingIdentifier GlobalsLocalsCodes getLoadLocalsCode Indentation indented ModuleCodes getModuleAccessCode templates.CodeTemplatesFrames template_frame_guard_cache_decl template_frame_guard_coroutine template_frame_guard_frame_decl template_frame_guard_full_block template_frame_guard_full_exception_handler template_frame_guard_full_return_handler template_frame_guard_generator template_frame_guard_generator_exception_handler template_frame_guard_generator_return_handler template_frame_guard_once generateStatementsFrameCode N/A N/A statement_sequence emit context N/A N/A N/A context N/A N/A Contexts PythonStatementCContext context N/A provider N/A N/A statement_sequence getParentVariableProvider N/A guard_mode N/A N/A statement_sequence getGuardMode N/A parent_exception_exit N/A N/A context getExceptionEscape N/A old_frame_handle N/A N/A context getFrameHandle N/A N/A guard_mode pass_through N/A N/A N/A N/A provider isExpressionGeneratorObjectBody N/A N/A N/A N/A context setFrameHandle generator->m_frame N/A N/A N/A N/A provider isExpressionCoroutineObjectBody N/A N/A N/A N/A context setFrameHandle coroutine->m_frame N/A N/A N/A N/A provider isCompiledPythonModule N/A N/A N/A N/A context setFrameHandle frame_module N/A N/A N/A N/A context setFrameHandle frame_function N/A N/A N/A context setExceptionEscape N/A N/A context allocateLabel frame_exception_exit N/A N/A N/A N/A context setFrameHandle PyThreadState_GET()->frame N/A needs_preserve N/A N/A statement_sequence needsFrameExceptionPreserving N/A N/A N/A N/A statement_sequence mayReturn N/A guard_mode pass_through N/A N/A parent_return_exit N/A N/A context getReturnTarget N/A N/A N/A context setReturnTarget N/A N/A context allocateLabel frame_return_exit N/A N/A parent_return_exit None N/A local_emit N/A N/A Emission SourceCodeCollector CodeGeneration _generateStatementSequenceCode N/A N/A _generateStatementSequenceCode statement_sequence statement_sequence emit local_emit context context N/A N/A N/A N/A statement_sequence mayRaiseException BaseException N/A guard_mode generator N/A N/A frame_exception_exit N/A N/A context getExceptionEscape N/A N/A frame_exception_exit None N/A N/A parent_return_exit None N/A N/A frame_return_exit N/A N/A context getReturnTarget N/A N/A frame_return_exit None N/A N/A guard_mode generator N/A N/A N/A N/A N/A provider isExpressionGeneratorObjectBody N/A N/A provider isExpressionCoroutineObjectBody N/A N/A getFrameGuardLightCode code_identifier N/A N/A statement_sequence getCodeObjectHandle context context codes N/A local_emit codes parent_exception_exit parent_exception_exit frame_exception_exit frame_exception_exit parent_return_exit parent_return_exit frame_return_exit frame_return_exit provider provider emit emit context context N/A N/A N/A guard_mode pass_through N/A N/A N/A N/A local_emit emitTo emit N/A N/A N/A guard_mode full N/A N/A N/A N/A N/A provider isExpressionFunctionBody N/A N/A provider isExpressionClassBody N/A N/A getFrameGuardHeavyCode frame_identifier N/A N/A context getFrameHandle code_identifier N/A N/A statement_sequence getCodeObjectHandle context parent_exception_exit parent_exception_exit parent_return_exit parent_return_exit frame_exception_exit frame_exception_exit frame_return_exit frame_return_exit codes N/A local_emit codes needs_preserve needs_preserve provider provider emit emit context context N/A N/A N/A guard_mode once N/A N/A N/A getFrameGuardOnceCode frame_identifier N/A N/A context getFrameHandle code_identifier N/A N/A statement_sequence getCodeObjectHandle context context parent_exception_exit parent_exception_exit parent_return_exit parent_return_exit frame_exception_exit frame_exception_exit frame_return_exit frame_return_exit codes N/A local_emit codes needs_preserve needs_preserve provider provider emit emit context context N/A N/A False guard_mode N/A N/A N/A context setExceptionEscape parent_exception_exit N/A N/A frame_return_exit None N/A N/A N/A N/A context setReturnTarget parent_return_exit N/A N/A N/A context setFrameHandle old_frame_handle N/A N/A N/A N/A context getCleanupTempnames N/A N/A context getCleanupTempnames N/A getFrameGuardHeavyCode N/A N/A frame_identifier code_identifier codes needs_preserve parent_exception_exit parent_return_exit frame_exception_exit frame_return_exit provider emit context N/A N/A N/A no_exception_exit N/A N/A context allocateLabel frame_no_exception N/A N/A N/A context addFrameDeclaration N/A template_frame_guard_cache_decl N/A frame_identifier frame_identifier N/A N/A N/A context addFrameDeclaration N/A template_frame_guard_frame_decl N/A frame_identifier frame_identifier N/A N/A emit N/A template_frame_guard_full_block N/A frame_identifier code_identifier codes module_identifier no_exception_exit needs_preserve frame_identifier code_identifier N/A indented codes 0 N/A getModuleAccessCode context context no_exception_exit N/A needs_preserve 1 0 N/A N/A frame_return_exit None N/A N/A N/A emit N/A template_frame_guard_full_return_handler N/A frame_identifier return_exit frame_return_exit needs_preserve frame_identifier parent_return_exit frame_return_exit N/A needs_preserve 1 0 N/A N/A frame_exception_exit None N/A N/A N/A frame_locals_name locals_code N/A getFrameLocalsUpdateCode provider provider context context N/A N/A emit N/A template_frame_guard_full_exception_handler N/A frame_identifier frame_locals_name store_frame_locals tb_making parent_exception_exit frame_exception_exit needs_preserve frame_identifier frame_locals_name N/A indented locals_code 2 vert_block True N/A getTracebackMakingIdentifier context context lineno_name exception_lineno parent_exception_exit frame_exception_exit N/A needs_preserve 1 0 N/A N/A emit N/A %s:;
 no_exception_exit N/A getFrameGuardOnceCode N/A N/A frame_identifier code_identifier codes parent_exception_exit parent_return_exit frame_exception_exit frame_return_exit needs_preserve provider emit context N/A N/A N/A N/A N/A parent_return_exit None N/A frame_return_exit None N/A N/A N/A N/A provider isCompiledPythonModule N/A N/A N/A _frame_locals_name locals_code N/A getFrameLocalsUpdateCode provider provider context context N/A False locals_code N/A N/A N/A context addFrameDeclaration N/A template_frame_guard_frame_decl N/A frame_identifier frame_identifier N/A N/A emit N/A template_frame_guard_once N/A frame_identifier code_identifier codes module_identifier tb_making parent_exception_exit frame_exception_exit no_exception_exit needs_preserve frame_identifier code_identifier N/A indented codes 0 N/A getModuleAccessCode context context N/A getTracebackMakingIdentifier context context lineno_name exception_lineno parent_exception_exit frame_exception_exit N/A N/A context allocateLabel frame_no_exception N/A needs_preserve 1 0 N/A getFrameGuardLightCode N/A N/A code_identifier codes parent_exception_exit parent_return_exit frame_exception_exit frame_return_exit provider emit context N/A N/A N/A N/A N/A context markAsNeedsExceptionVariables N/A N/A frame_exception_exit None N/A N/A N/A N/A N/A context getOwner isExpressionGeneratorObjectBody N/A N/A kind generator N/A template template_frame_guard_generator N/A N/A kind coroutine N/A template template_frame_guard_coroutine N/A N/A N/A context addFrameDeclaration N/A template_frame_guard_cache_decl N/A frame_identifier N/A frame_ kind N/A no_exception_exit N/A N/A context allocateLabel frame_no_exception N/A N/A emit N/A template N/A frame_cache_identifier code_identifier codes module_identifier no_exception_exit N/A cache_frame_ kind code_identifier N/A indented codes 0 N/A getModuleAccessCode context context no_exception_exit N/A N/A frame_return_exit None N/A N/A N/A emit N/A template_frame_guard_generator_return_handler N/A frame_identifier return_exit frame_return_exit N/A %s->m_frame kind parent_return_exit frame_return_exit N/A N/A frame_locals_name locals_code N/A getFrameLocalsUpdateCode provider provider context context N/A N/A kind generator N/A N/A template template_frame_guard_generator_exception_handler N/A N/A template template_frame_guard_generator_exception_handler N/A N/A emit N/A template N/A frame_identifier frame_locals_name store_frame_locals tb_making frame_exception_exit parent_exception_exit no_exception_exit N/A %s->m_frame kind frame_locals_name N/A indented locals_code 2 vert_block True N/A getTracebackMakingIdentifier context context lineno_name exception_lineno frame_exception_exit parent_exception_exit no_exception_exit N/A getFrameLocalsUpdateCode N/A N/A provider context N/A N/A N/A locals_codes N/A N/A Emission SourceCodeCollector N/A N/A N/A context setCurrentSourceCodeReference N/A N/A provider getSourceReference N/A frame_locals_name N/A N/A context allocateTempName frame_locals unique True N/A N/A getLoadLocalsCode to_name frame_locals_name provider provider mode updated emit N/A locals_codes emit context context N/A N/A N/A context needsCleanup frame_locals_name N/A N/A N/A N/A context removeCleanupTempName frame_locals_name N/A N/A frame_locals_name N/A locals_codes codes N/A generateFramePreserveExceptionCode N/A N/A statement emit context N/A N/A N/A N/A emit // Preserve existing published exception. N/A N/A python_version 300 N/A N/A N/A emit N/A PRESERVE_FRAME_EXCEPTION( %(frame_identifier)s ); N/A frame_identifier N/A N/A context getFrameHandle N/A N/A preserver_id N/A N/A statement getPreserverId N/A N/A N/A preserver_id 0 N/A python_version 300 N/A N/A N/A emit N/A PRESERVE_FRAME_EXCEPTION( %(frame_identifier)s ); N/A frame_identifier N/A N/A context getFrameHandle N/A N/A N/A N/A context addExceptionPreserverVariables preserver_id N/A N/A emit N/A exception_preserved_type_%(preserver_id)d = PyThreadState_GET()->exc_type;
Py_XINCREF( exception_preserved_type_%(preserver_id)d );
exception_preserved_value_%(preserver_id)d = PyThreadState_GET()->exc_value;
Py_XINCREF( exception_preserved_value_%(preserver_id)d );
exception_preserved_tb_%(preserver_id)d = (PyTracebackObject *)PyThreadState_GET()->exc_traceback;
Py_XINCREF( exception_preserved_tb_%(preserver_id)d );
 N/A preserver_id preserver_id N/A generateFrameRestoreExceptionCode N/A N/A statement emit context N/A N/A N/A N/A emit // Restore previous exception. N/A N/A python_version 300 N/A N/A N/A emit N/A RESTORE_FRAME_EXCEPTION( %(frame_identifier)s ); N/A frame_identifier N/A N/A context getFrameHandle N/A N/A preserver_id N/A N/A statement getPreserverId N/A N/A N/A preserver_id 0 N/A python_version 300 N/A N/A N/A emit N/A RESTORE_FRAME_EXCEPTION( %(frame_identifier)s ); N/A frame_identifier N/A N/A context getFrameHandle N/A N/A N/A emit N/A SET_CURRENT_EXCEPTION( exception_preserved_type_%(preserver_id)d, exception_preserved_value_%(preserver_id)d, exception_preserved_tb_%(preserver_id)d ); N/A preserver_id preserver_id N/A