Python conventions

MartinRinehart at gmail.com MartinRinehart at gmail.com
Thu Apr 10 15:52:11 EDT 2008



Daniel Fetchinson wrote:
> I'm sorry to disappoint you but this project has already been completed:
>
> http://www.python.org/dev/peps/pep-0008/

Daniel, PEP 8 is anything but complete. How much of the following
simple question can you answer from there:

Given that you can name things with UpperAndLower, lowerAndUpper,
lower_and_underscore, etc., what is the convention for naming
packages, modules, classes, ...

PEP 8 very much reminds me of Sun's Java conventions - a start, but
only a start. Also, in part, controversial. (How wide do you think
Python code should be?) Finally, lacking in basic organization. (This
seems to be a disease that infects almost all standards.) We can do
better. As a guess, GvR would be happy to have someone fill out PEP 8.



More information about the Python-list mailing list