This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nas
Recipients nas
Date 2010-06-28.22:24:20
SpamBayes Score 0.003688737
Marked as misclassified No
Message-id <1277763863.2.0.681054558963.issue9109@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-06-28 22:24:23nassetrecipients: + nas
2010-06-28 22:24:23nassetmessageid: <1277763863.2.0.681054558963.issue9109@psf.upfronthosting.co.za>
2010-06-28 22:24:21naslinkissue9109 messages
2010-06-28 22:24:20nascreate