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 ncoghlan
Recipients Arfrever, barry, brett.cannon, eric.smith, eric.snow, georg.brandl, ncoghlan, pje, python-dev
Date 2012-08-03.01:47:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343958435.31.0.63770813759.issue15502@psf.upfronthosting.co.za>
In-reply-to
Content
On the "self-contained" packages point, I was going to suggest that name, but the ability to set __path__ from __init__.py messes with it. "Regular packages" isn't great, but I'm willing to tolerate it (mainly because it was the terminology used in the approved PEP 420). The reason I still prefer "initialized" package though, is because the real difference between the two is the presence or absence of __init__.py. That means arbitrary code execution can occur as a side effect of import for initialized packages, in contrast to namespace packages which are comparatively "pure" (that is, no user provided code is executed as a side effect of importing them).

+1 for renaming the current "hooks" section to "extensions" (with only the callables on path_hooks being referred to as hooks).

On the topic of "import handlers" vs "meta path finders", the reason I'm happy with keeping the common suffix for "meta path finders" and "path entry finders" is that while there are substantial differences in *how* they do what they do, they are fundamentally the same in terms of *what* they do: given a module name, find a loader for it (or indicate that you can't find one). Meta path finders search more broadly than path entry finders do, but they're still doing much the same job.

I've come to the conclusion that PEP 302 actually did a reasonable job with the finder vs loader vs importer classification scheme, and it's not worth trying to change that terminology too much after it's already been in the wild for 10+ years. Clarify and refine by introducing additional distinctions, yes, but change, no.
History
Date User Action Args
2012-08-03 01:47:15ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, georg.brandl, pje, eric.smith, Arfrever, python-dev, eric.snow
2012-08-03 01:47:15ncoghlansetmessageid: <1343958435.31.0.63770813759.issue15502@psf.upfronthosting.co.za>
2012-08-03 01:47:14ncoghlanlinkissue15502 messages
2012-08-03 01:47:13ncoghlancreate