[Python-Dev] PEP 8 updates/clarifications

Guido van Rossum guido at python.org
Tue Dec 13 20:18:05 CET 2005


On 12/13/05, Jim Fulton <jim at zope.com> wrote:
> Personally, I'd rather just sort aphabetically based on dotted package
> name.  Because packages provide meaningful groupings to begin with,
> this approach provides the most meaningful groupings to me.  (All of
> my "internal" modules are in packages.)  When scanning imports, I
> don't want to have to think about whether a module is internal or
> external.  I've got enough to think about without that. :)

Disagree strongly.

The separation into (1) stdlib, (2) thirdparty, (3) internal helps the
reader assess dependencies -- where to look for more docs, what to do
if the import fails, etc.

> Frankly, I'd be as happy t see the PEP be silent on module ordering.

Obviously I disagree here too. :-)

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list