Message190673
Interesting.
And I can report that it works, in 2.7, with code such as
b = importlib.import_module("..b", __name__)
and
a = importlib.import_module("..a", __name__)
Still, it seems odd that a whole "importlib" is requried ot resolve the relative import, and that it doesn"t work with __import__, given how "supposedly" the import statement is supposed to translate to a __import__ call internally. One would think that __import__ had access to the relative path machinery somehow. |
|
Date |
User |
Action |
Args |
2013-06-05 16:07:26 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, barry, brett.cannon, pje, ncoghlan, methane, eric.snow, pconnell, isoschiz, Pascal.Chambon |
2013-06-05 16:07:26 | kristjan.jonsson | set | messageid: <1370448446.13.0.874645486784.issue17636@psf.upfronthosting.co.za> |
2013-06-05 16:07:26 | kristjan.jonsson | link | issue17636 messages |
2013-06-05 16:07:25 | kristjan.jonsson | create | |
|