[issue441793] Improvment to package import semantics

2022-04-10 Thread admin
Change by admin : -- github: None -> 34767 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue441791] Improvment to package import semantics

2022-04-10 Thread admin
Change by admin : -- github: None -> 34766 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Import semantics?

2012-06-08 Thread Dan Stromberg
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. -- http://mail.python.org/mailman/listinfo/python-list

Re: Import semantics?

2012-06-08 Thread Ethan Furman
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

Re: Import semantics?

2012-06-08 Thread Dan Stromberg
On Fri, Jun 8, 2012 at 3:16 PM, Ethan Furman et...@stoneleaf.us wrote: 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

Re: Import semantics?

2012-06-08 Thread Ian Kelly
On Fri, Jun 8, 2012 at 4:24 PM, Dan Stromberg drsali...@gmail.com wrote: Am I misinterpreting this?  It seems like according to the PEP, I should have still been able to import treap.py despite having a treap/.  But I couldn't; I had to rename treap/ to treap-dir/ first. That's how I

Re: [Python-Dev] Import semantics?

2012-06-08 Thread Ethan Furman
Eric V. Smith wrote: On 6/8/2012 6:41 PM, Ethan Furman wrote: Dan Stromberg wrote: On Fri, Jun 8, 2012 at 3:16 PM, Ethan Furman wrote: 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

Re: Import semantics?

2012-06-08 Thread Devin Jeanpierre
On Fri, Jun 8, 2012 at 6:24 PM, Dan Stromberg drsali...@gmail.com wrote: Am I misinterpreting this?  It seems like according to the PEP, I should have still been able to import treap.py despite having a treap/.  But I couldn't; I had to rename treap/ to treap-dir/ first. Only if treap/ and

Re: Import semantics?

2012-06-08 Thread Dan Stromberg
On Fri, Jun 8, 2012 at 3:48 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Jun 8, 2012 at 4:24 PM, Dan Stromberg drsali...@gmail.com wrote: Am I misinterpreting this? It seems like according to the PEP, I should have still been able to import treap.py despite having a treap/. But I

Re: Import semantics?

2012-06-08 Thread Dan Stromberg
And a link to the ticket: http://bugs.python.org/issue15039 -- http://mail.python.org/mailman/listinfo/python-list