Re: [Python-Dev] PEP 8 misnaming

2012-03-14 Thread Ben Finney
Facundo Batista writes: > if (width == 0 and height == 0 and > color == 'red' and emphasis == 'strong' or > highlight > 100): > raise ValueError("sorry, you lose") > > In the example the line is broken after the 'and' or 'or' *keywords*,

Re: [Python-Dev] PEP 8 misnaming

2012-03-14 Thread Geoffrey Spear
On Wed, Mar 14, 2012 at 7:21 AM, Facundo Batista wrote: > Hello! > > In the "Maximum Line Length" section of PEP 8 it says: > >    "The preferred place to break around a binary operator is *after* > the operator, not before it." > > And after that is an example (trimmed here): > >            if (w

[Python-Dev] PEP 8 misnaming

2012-03-14 Thread Facundo Batista
Hello! In the "Maximum Line Length" section of PEP 8 it says: "The preferred place to break around a binary operator is *after* the operator, not before it." And after that is an example (trimmed here): if (width == 0 and height == 0 and color == 'red' and emphas