Kristján Valur Jónsson added the comment:
One question.
when doing "Programmatic" import, i.e. using the __import__ function, how do we
do the same?
#module foo.B
A = __import__(".", fromlist=["A"]).A
#module foo.A
B = __import__(".", fromlist=["B"]).B
Clearly the above won't work. Can we extend __import__ to allow a full path,
including relative? The objection about which name to bind to is no longer
valid, since the binding is explicit.
So, could we do:
#module foo.B
A = __import__(".A")
#module foo.A
B = __import__(".B")
?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17636>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com