[issue16846] relative import solution
Georg Brandl
report at bugs.python.org
Thu Jan 3 15:01:05 CET 2013
Georg Brandl added the comment:
David, the "issue" is that Python only allows relative imports within packages. The OP wants to have a.py and b.py in the same directory and then be able to said "from . import b" in the a module.
This is a design decision and will not change without a PEP.
----------
nosy: +georg.brandl, ncoghlan
resolution: -> rejected
status: open -> pending
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16846>
_______________________________________
More information about the Python-bugs-list
mailing list