[Python-Dev] PEP 8 updated on whether to break before or after a binary update

Guido van Rossum guido at python.org
Fri Apr 15 13:43:44 EDT 2016


The update is already serving its real purpose: showing that style is
debatable and cannot always easily be reduced to fixed rules.

On Fri, Apr 15, 2016 at 10:24 AM, Serhiy Storchaka <storchaka at gmail.com>
wrote:

> On 15.04.16 20:03, Victor Stinner wrote:
>
>> Hum.
>>
>>          if (width == 0
>>              and height == 0
>>              and color == 'red'
>>              and emphasis == 'strong'
>>              or highlight > 100):
>>              raise ValueError("sorry, you lose")
>>
>> Please remove one space to vertically align "and" operators with the
>> opening parenthesis:
>>
>>          if (width == 0
>>             and height == 0
>>             and color == 'red'
>>             and emphasis == 'strong'
>>             or highlight > 100):
>>              raise ValueError("sorry, you lose")
>>
>
> I would rather *add* spaces to wrapped condition lines.
>
>         if (width == 0
>                 and height == 0
>                 and color == 'red'
>                 and emphasis == 'strong'
>                 or highlight > 100):
>             raise ValueError("sorry, you lose")
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160415/4b31e6cd/attachment.html>


More information about the Python-Dev mailing list