[Import-SIG] PEP 402: specification questions

"Martin v. Löwis" martin at v.loewis.de
Thu Nov 10 19:14:51 CET 2011


> Yeah, I haven't actually had a chance to try it out yet. It sounds
> like it's just an implementation bug in the "import foo" part, though,
> since PJE is correct in his recollection that the "from x import y"
> algorithm is along the lines of:
> 
>     import x

That already fails with PEP 402: you can't import the virtual package,
only the subpackages. It then just stops with that import failed, and
doesn't even try to look for subpackages. So specification and
implementation really match here - it's not just an implementation
bug.

Regards,
Martin


More information about the Import-SIG mailing list