MCPcopy Index your code
hub / github.com/Nuitka/Nuitka / UncompiledPythonModule

Class UncompiledPythonModule

nuitka/nodes/ModuleNodes.py:823–892  ·  view source on GitHub ↗

Uncompiled Python Module

Source from the content-addressed store, hash-verified

821
822
823class UncompiledPythonModule(PythonModuleBase):
824 """Uncompiled Python Module"""
825
826 kind = "UNCOMPILED_PYTHON_MODULE"
827
828 __slots__ = (
829 "bytecode",
830 "filename",
831 "technical",
832 "used_modules",
833 "distribution_names",
834 )
835
836 def __init__(
837 self,
838 module_name,
839 reason,
840 bytecode,
841 filename,
842 technical,
843 source_ref,
844 ):
845 PythonModuleBase.__init__(
846 self,
847 module_name=module_name,
848 reason=reason,
849 source_ref=source_ref,
850 )
851
852 self.bytecode = bytecode
853 self.filename = filename
854
855 self.technical = technical
856
857 self.used_modules = ()
858 self.distribution_names = ()
859
860 def finalize(self):
861 del self.used_modules
862 del self.bytecode
863
864 @staticmethod
865 def isUncompiledPythonModule():
866 return True
867
868 def isTechnical(self):
869 """Must be bytecode as it's used in CPython library initialization."""
870 return self.technical
871
872 def getByteCode(self):
873 return self.bytecode
874
875 def getFilename(self):
876 return self.filename
877
878 def getUsedModules(self):
879 return self.used_modules
880

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…