Guido sees the light: PEP 8 updated

Marko Rauhamaa marko at pacujo.net
Sat Apr 16 04:06:59 EDT 2016


Bob Martin <bob.martin at excite.com>:

> in 758117 20160416 053809 Steven D'Aprano <steve at pearwood.info> wrote:
>>Until now, PEP 8 has recommended that multi-line expressions should
>>break *after* infix operators:
>>
>>
>>result = (this_value *
>>some_value +
>>another_value -
>>excess_value or
>>default_value
>>)
>>
>>
>>After a mercifully short discussion on the Python-Ideas mailing list,
>>Guido has been persuaded to change PEP 8 to recommend that the break
>>should occur *before* the infix operator:
>>
>>
>>result = (this_value
>>* some_value
>>+ another_value
>>- excess_value
>>or default_value
>>)
>>
>>
>>This makes me happy :-)
>
> That's how I've always done it.

It doesn't really matter one way or another. The true WTF is that it's
been changed.


Marko



More information about the Python-list mailing list