[Zope-dev] Coding style clarifications
Jim Fulton
jim at zope.com
Thu Feb 19 13:57:31 EST 2009
On Feb 19, 2009, at 12:43 PM, Tres Seaver wrote:
> - -1. I prefer the PEP8 grouping, where "stdlib" imports are
> separated
> from "dependecy" imports, which are separated from "local" imports.
> Note that this is *not* subjective (an import is unambiguously in
> exaclty one of those three classifications.)
I find it very subjective, or, at best, orthogonal to anything I care
about.
If I'm working in a ZEO package, is an import from ZODB local? How
about transaction?
If I import asyncore or cPickle, is that coming from the standard
library? It is today, but it wasn't in the past, when the code I'm
reading may have been written.
The grouping in PEP 8 is based on packaging decisions that are
irrelevant to the meaning of the software.
Jim
--
Jim Fulton
Zope Corporation
More information about the Zope-Dev
mailing list