Kristján Valur Jónsson added the comment:

sorry, the last example really needs to be:
#module foo.B
A = __import__(".A", fromlist=["dummy"])

to invoke the "return final module" behaviour.
Hm, maybe this simply works...  I didn't test....
Nope, I get
ValueError: Empty module name (in 2.7)

----------

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

Reply via email to