[New-bugs-announce] [issue9109] absolute import cleanups for Python 3
report at bugs.python.org
Tue Jun 29 00:24:23 CEST 2010
New submission from Neil Schemenauer <nas-pythonbugs at arctrix.com>:
It looks like there is a bunch of legacy relative import cruft kicking around in Python 3. The first thing I noticed is that __import__.__doc__ claims that level=-1 is the default (i.e. use the Python 2 behavior). A little testing shows that the docs don't lie and __import__ in Python 3 defaults trying a relative import first.
What is the status of implicit relative imports in Python 3? Can the level=-1 code be removed?
components: Interpreter Core
title: absolute import cleanups for Python 3
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce