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 eric.snow
Recipients Arfrever, eric.snow, r.david.murray, shai
Date 2013-02-03.05:07:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359868043.6.0.184652033644.issue17108@psf.upfronthosting.co.za>
In-reply-to
Content
> By the way,...

Yeah, PEP 420 (implemented in 3.3) introduced namespace packages.  The new behavior you're thinking of is where a package doesn't need a __init__.py.  So path-based lookup for modules, the order goes like this (for "import spam.eggs"):

1. look for a directory named "spam" with a __init__.py,
2. look for a file named spam.py,
3. look for a directory named "spam" (becomes an namespace package),
4. raise ImportError (used to be step 3).

Once spam gets loaded, spam.eggs gets imported...
History
Date User Action Args
2013-02-03 05:07:23eric.snowsetrecipients: + eric.snow, Arfrever, r.david.murray, shai
2013-02-03 05:07:23eric.snowsetmessageid: <1359868043.6.0.184652033644.issue17108@psf.upfronthosting.co.za>
2013-02-03 05:07:23eric.snowlinkissue17108 messages
2013-02-03 05:07:23eric.snowcreate