Dave Peck <davep...@gmail.com> added the comment:

Definitely could agree with this assessment, but it is surprising given the 
lack of parallel behavior between 'import' and 'imp'.

Note that imp.load_module(subpackage) _does_ modify the parent module's 
attributes -- but it will never put the subpackage attribute itself on parent. 
That's the part that made me think it shouldn't work this way and that its more 
bug than documentation. (That, and the specific use of the imp module in 
Google's dev_appserver.py which indicates that others have the same expectation 
of load_module() that I did.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11676>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to