mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Before this change we end up duplicating effort and throwing away data in FrozenImporter.find_spec(). Now we do the work once in find_spec() and the only thing we do in FrozenImporter.exec_module() is turn the raw frozen data into a code object and then exec it. We've added _imp.find_frozen(), add an arg to _imp.get_frozen_object(), and updated FrozenImporter. We've also moved some code around to reduce duplication, get a little more consistency in outcomes, and be more efficient. Note that this change is mostly necessary if we want to set __file__ on frozen stdlib modules. (See https://bugs.python.org/issue21736.) https://bugs.python.org/issue45324 |
||
|---|---|---|
| .. | ||
| builtin | ||
| data | ||
| data01 | ||
| data02 | ||
| data03 | ||
| extension | ||
| frozen | ||
| import_ | ||
| namespace_pkgs | ||
| namespacedata01 | ||
| partial | ||
| resources | ||
| source | ||
| zipdata01 | ||
| zipdata02 | ||
| __init__.py | ||
| __main__.py | ||
| abc.py | ||
| fixtures.py | ||
| stubs.py | ||
| test_abc.py | ||
| test_api.py | ||
| test_compatibilty_files.py | ||
| test_contents.py | ||
| test_files.py | ||
| test_lazy.py | ||
| test_locks.py | ||
| test_main.py | ||
| test_metadata_api.py | ||
| test_namespace_pkgs.py | ||
| test_open.py | ||
| test_path.py | ||
| test_pkg_import.py | ||
| test_read.py | ||
| test_reader.py | ||
| test_resource.py | ||
| test_spec.py | ||
| test_threaded_import.py | ||
| test_util.py | ||
| test_windows.py | ||
| test_zip.py | ||
| threaded_import_hangers.py | ||
| update-zips.py | ||
| util.py | ||