Message190667
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")
? |
|
Date |
User |
Action |
Args |
2013-06-05 15:42:30 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, barry, brett.cannon, pje, ncoghlan, methane, eric.snow, pconnell, isoschiz, Pascal.Chambon |
2013-06-05 15:42:30 | kristjan.jonsson | set | messageid: <1370446950.36.0.322649612816.issue17636@psf.upfronthosting.co.za> |
2013-06-05 15:42:30 | kristjan.jonsson | link | issue17636 messages |
2013-06-05 15:42:30 | kristjan.jonsson | create | |
|