Import semantics?

Ethan Furman ethan at stoneleaf.us
Fri Jun 8 18:16:15 EDT 2012


Dan Stromberg wrote:
> 
> Did the import semantics change in cpython 3.3a4?
> 
> I used to be able to import treap.py even though I had a treap directory 
> in my cwd.  With 3.3a4, I have to rename the treap directory to see 
> treap.py.

Check out PEP 420 -- Implicit Namespace Packages 
[http://www.python.org/dev/peps/pep-0420/]

~Ethan~





More information about the Python-list mailing list