[Python-Dev] PEP 8 updates/clarifications

Barry Warsaw barry at python.org
Sat Dec 10 00:49:23 CET 2005


On Fri, 2005-12-09 at 17:19 -0600, Ian Bicking wrote:

> I personally feel "cls" should be used for classmethods, and not 
> elsewhere.  Just like I wouldn't like someone using "self" outside of 
> the first argument of instance methods.  So class_ still would be a good 
> spelling elsewhere.

Cool.

>    Do not indent subsequent lines in a triple-quoted string; you should
>    consider the opening quote to be the left margin.
> 
> I don't understand exactly what you are saying here.

Just that I dislike:

def foo():
    """Here is a triple quoted, multiline string

       Some people write the continuation lines starting
       in this column, but I don't like that.
    """

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20051209/f7dff715/attachment-0001.pgp


More information about the Python-Dev mailing list