New submission from Neil Schemenauer <nas-pythonb...@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
messages: 108874
nosy: nas
priority: normal
severity: normal
status: open
title: absolute import cleanups for Python 3
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9109>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to