[issue14657] Avoid two importlib copies

Nick Coghlan report at bugs.python.org
Sun Apr 29 10:24:13 CEST 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Uploaded new bootstrapping patch that handles the fully explicit import machinery.

I also tweaked a couple of things so it plays nicely in terms of building an initial version with the checked in importlib.h. Specifically: pythonrun still calls _frozen_importlib._install and can tolerate that function returning None. Longer term, we'd give the two hooks different names and returning None will become a fatal error, but for the moment, the current behaviour makes the patch much easier to work with.

Order is still wrong relative to the zipimport machinery and I haven't benchmarked the startup time overheads.

----------
Added file: http://bugs.python.org/file25403/issue14657_bootstrap_from_disk_v2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14657>
_______________________________________


More information about the Python-bugs-list mailing list