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)

>>> import signal
>>> imp.reload(signal)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python33-64\lib\imp.py", line 252, in reload
    return module.__loader__.load_module(name)
AttributeError: 'module' object has no attribute '__loader__'
>>>
 
">

(original) (raw)

Bugs #17098 and #17099 filed.


On Fri, Feb 1, 2013 at 1:56 AM, Thomas Heller <theller@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)

\>>> import signal
\>>> imp.reload(signal)
Traceback (most recent call last):
File "", line 1, in
File "C:\\Python33-64\\lib\\imp.py", line 252, in reload
return module.\_\_loader\_\_.load\_module(name)

AttributeError: 'module' object has no attribute '\_\_loader\_\_'
\>>>