[issue27543] from module import function creates package reference to the module

Brett Cannon report at bugs.python.org
Sun Jul 17 19:52:01 EDT 2016


Brett Cannon added the comment:

I'm not at a computer where I can verify what you're seeing, Marc,but I should mention that at least for Python 3 your imports are wrong as you should be doing relative imports, e.g. `from . import b as a`, otherwise the imports won't work unless you're accidentally executing Python from within the directory of the package.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27543>
_______________________________________


More information about the Python-bugs-list mailing list