[Python-Dev] making the import machinery explicit
Philip Jenvey
pjenvey at underboss.org
Tue Apr 17 19:45:24 CEST 2012
On Apr 14, 2012, at 1:03 PM, Brett Cannon wrote:
> And lastly, sticking None in sys.path_importer_cache would no longer mean "do the implicit thing" and instead would mean the same as NullImporter does now (which also means import can put None into sys.path_importer_cache instead of NullImporter): no finder is available for an entry on sys.path when None is found.
Isn't it more explicit to cache the NullImporter instead of None?
--
Philip Jenvey
More information about the Python-Dev
mailing list