#NEWLINE# def _getAnonBuiltins( ) : #NEWLINE# #INDENT# with open ( sys . executable ) as any_file : #NEWLINE# #INDENT# anon_names = { #NEWLINE# #INDENT# 'NoneType' : type ( None ) , #NEWLINE# 'ellipsis' : type ( Ellipsis ) , #NEWLINE# 'NotImplementedType' : type ( NotImplemented ) , #NEWLINE# 'function' : FunctionType , #NEWLINE# 'builtin_function_or_method' : BuiltinFunctionType , #NEWLINE# 'compiled_function' : BuiltinFunctionType , #NEWLINE# 'generator' : GeneratorType , #NEWLINE# 'compiled_generator' : GeneratorType , #NEWLINE# 'code' : type ( _getAnonBuiltins . __code__ ) , #NEWLINE# 'file' : type ( anon_names ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# anon_codes = { #NEWLINE# #INDENT# 'NoneType' : 'Py_TYPE( Py_None )' , #NEWLINE# 'ellipsis' : '&PyEllipsis_Type' , #NEWLINE# 'NotImplementedType' : 'Py_TYPE( Py_NotImplemented )' , #NEWLINE# 'function' : '&PyFunction_Type' , #NEWLINE# 'builtin_function_or_method' : '&PyCFunction_Type' , #NEWLINE# 'compiled_function' : '&Nuitka_Function_Type' , #NEWLINE# 'compiled_generator' : '&Nuitka_Generator_Type' , #NEWLINE# 'code' : '&PyCode_Type' , #NEWLINE# 'file' : '&PyFile_Type' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( python_version < 300 ) : #NEWLINE# #INDENT# from types import ClassType , InstanceType , MethodType #NEWLINE# anon_names [ 'classobj' ] = ClassType #NEWLINE# anon_codes [ 'classobj' ] = '&PyClass_Type' #NEWLINE# anon_names [ 'instance' ] = InstanceType #NEWLINE# anon_codes [ 'instance' ] = '&PyInstance_Type' #NEWLINE# anon_names [ 'instancemethod' ] = MethodType #NEWLINE# anon_codes [ 'instancemethod' ] = '&PyMethod_Type' #NEWLINE# #UNINDENT# return ( anon_names , anon_codes )