coding conventions, PEP vs. practice
Robert Kern
rkern at ucsd.edu
Tue Jan 4 20:16:30 EST 2005
Roman Roelofsen wrote:
> Dear python-list,
>
> while looking for some coding conventions for python programs, i found the
> PEP8 at http://www.python.org/peps/pep-0008.html. It defines the rules very
> well and leaves no space for interpretations. I guess thats a good thing :-)
> But when i started playing a bit with python and frameworks like Zope,
> Webworks, etc., i noticed, that a lot frameworks are using a different
> convention for methodnames.
Note the first sentence of the PEP: "This document gives coding
conventions for the Python code comprising the standard library for the
main Python distribution."
It is not intended to be a style guide for all Python code although many
groups do adopt all or part of it for their own style guides.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list