[issue4292] 2to3 fails to convert "from something import (a, b, c)"
Ondrej Certik
report at bugs.python.org
Mon Nov 10 10:56:06 CET 2008
Ondrej Certik <ondrej at certik.cz> added the comment:
Author: STINNER Victor (haypo):
You would like to replace "from mptypes import ..." by "from .mptypes
import ...". Is it really a bug? Python is unable to guess if mptypes,
functions or settings are "global" modules or "relative" modules. Why
don't you patch your original code since Python 2.5 also supports this
syntax? Documentation:
http://www.python.org/doc/2.5.2/ref/import.html
http://docs.python.org/reference/simple_stmts.html#the-import-statement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4292>
_______________________________________
More information about the Python-bugs-list
mailing list