[Python-ideas] My objections to implicit package directories
ncoghlan at gmail.com
Tue Mar 13 22:33:49 CET 2012
On Mar 14, 2012 5:24 AM, "Paul Moore" <p.f.moore at gmail.com>
> OTOH, I don't have a problem with __init__.py files, so something that
> correctly autodetects the right thing to add to sys.path based on the
> presence of __init__ files would be fine.
I set up my projects the same way you do - it's a good, self-contained
structure. And beginners (at least the ones that used Stack Overflow when I
was spending time there) seemed to like it as well. That's the reason PEP
395 uses it as its main example.
Over on import-sig, Eric Snow suggested a revised implicit package tolerant
search algorithm that's too slow to use on interpreter start up, but should
be fine for generating better error messages if __main__ or an interactive
import fails with ImportError, so I'll likely revise 395 to propose that
Sent from my phone, thus the relative brevity :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas