Message204920
To reproduce:
* create a package with the following structure:
pkg/
__init__.py
_sub.py
* __init__.py contains:
from pkg._sub import *
* the contents of _sub.py is not important
* in a python shell do:
>>> import pkg._sub as s
>>> import imp
>>> imp.reload(s)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 297, in reload
return importlib.reload(module)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/importlib/__init__.py", line 123, in reload
raise ImportError(_bootstrap._ERR_MSG.format(name), name=name)
ImportError: No module named 'pkg._sub'
>>>
In earlier python versions this reloaded the pkg._sub module. Importing _sub from __init__ doesn't seem to be important. |
|
Date |
User |
Action |
Args |
2013-12-01 14:11:35 | ronaldoussoren | set | recipients:
+ ronaldoussoren, brett.cannon, ncoghlan, eric.snow |
2013-12-01 14:11:34 | ronaldoussoren | set | messageid: <1385907094.98.0.564664253092.issue19851@psf.upfronthosting.co.za> |
2013-12-01 14:11:34 | ronaldoussoren | link | issue19851 messages |
2013-12-01 14:11:34 | ronaldoussoren | create | |
|