[Python-Dev] importlib.find_loader

Brett Cannon brett at python.org
Fri Feb 1 14:46:15 CET 2013


Bugs #17098 and #17099 filed.


On Fri, Feb 1, 2013 at 1:56 AM, Thomas Heller <theller at ctypes.org> wrote:

> Am 01.02.2013 01:42, schrieb Nick Coghlan:
>
>  Yep, looks like a bug in the bootstrapping, failing to set __loader__
>> properly.
>>
>
> It also has the effect that reload does not work:
>
>
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import imp
> >>> import math
> >>> imp.reload(math)
> <module 'math' (built-in)>
> >>> import signal
> >>> imp.reload(signal)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Python33-64\lib\imp.py", line 252, in reload
>     return module.__loader__.load_module(**name)
>
> AttributeError: 'module' object has no attribute '__loader__'
> >>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130201/1b9c8546/attachment.html>


More information about the Python-Dev mailing list