[Python-Dev] importlib.find_loader (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Fri Feb 1 01:42:05 CET 2013
- Previous message: [Python-Dev] Release or not release the GIL
- Next message: [Python-Dev] importlib.find_loader
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yep, looks like a bug in the bootstrapping, failing to set loader properly. However, I also think the current handling of the "no loader attribute" case is a separate bug - since we generally aim to tolerate non-modules in sys.modules (albeit somewhat grudgingly), importlib should probably be using "getattr(mod, 'loader', None)" rather than assuming the attribute will always be present.
Cheers, Nick. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130201/f8990254/attachment.html>
- Previous message: [Python-Dev] Release or not release the GIL
- Next message: [Python-Dev] importlib.find_loader
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]