_LoaderBasics — Base class of common code needed by both SourceLoader and SourcelessFileLoader.
| Use Case | Command | Description |
|---|---|---|
| Create module | create_module(spec) |
Use default semantics for module creation. |
| Execute module | exec_module(module) |
Execute the module. |
| Check package | is_package(fullname) |
Check if get_filename returns a path ending in __init__.py. |
| Load module (deprecated) | load_module(fullname) |
This method is deprecated. |
_frozen_importlib_external._LoaderBasics = class _LoaderBasics(builtins.object)
Base class of common code needed by both SourceLoader and SourcelessFileLoader.
create_module(self, spec) — Use default semantics for module creation.exec_module(self, module) — Execute the module.is_package(self, fullname) — Concrete implementation of InspectLoader.is_package by checking if the path returned by get_filename has a filename of __init__.py.load_module(self, fullname) — This method is deprecated.__dict__ — dictionary for instance variables (if defined)__weakref__ — list of weak references to the object (if defined)Generated by phpman v4.9.27-5-g2cb901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-20 04:13 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format