[Python-Dev] PEP 8 updates/clarifications
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Dec 15 12:05:54 CET 2005
Guido van Rossum wrote:
> You *might* want
> to separate classes with two blank lines if the methods within them
> are separated by single blank lines, but even there it's probably
> overkill.
Lately I've taken to putting a separator like this
between consecutive class definitions of any substantial
size:
#-------------------------------------------------------
I find it helps a lot when I'm skimming through looking
for the beginnings of classes.
Not suggesting this should go in PEP 8, though!
Greg
More information about the Python-Dev
mailing list