Message301642
As Serhiy notes, this isn't a bug in the import name resolution, it's a consequence of the wildcard import in bugtest's __init__.py replacing its own "bug.foo" submodule attribute with a reference to "bug.foo.foo".
If the star imports can't be avoided, then a potential workaround is to restore "bugtest.foo" from sys.modules:
foo = sys.modules[__name__ + ".foo"] |
|
Date |
User |
Action |
Args |
2017-09-07 22:29:22 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, r.david.murray, eric.snow, serhiy.storchaka, David Hagen |
2017-09-07 22:29:22 | ncoghlan | set | messageid: <1504823362.73.0.255423578657.issue31385@psf.upfronthosting.co.za> |
2017-09-07 22:29:22 | ncoghlan | link | issue31385 messages |
2017-09-07 22:29:22 | ncoghlan | create | |
|