[Python-Dev] making the import machinery explicit (original) (raw)
Terry Reedy tjreedy at udel.edu
Wed Apr 18 00:51:22 CEST 2012
- Previous message: [Python-Dev] making the import machinery explicit
- Next message: [Python-Dev] Require loaders set __package__ and __loader__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/17/2012 2:01 PM, Brett Cannon wrote:
Isn't it clearer to say
sys.pathimportercache[path] is None
thanisinstance(sys.pathimportercache[path], imp.NullImporter)
?
Yes. Great work. Thanks for helping with the Idle breakage.
-- Terry Jan Reedy
- Previous message: [Python-Dev] making the import machinery explicit
- Next message: [Python-Dev] Require loaders set __package__ and __loader__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]