Brandon Rhodes added the comment:

Another important objection against the current text is that it stacks a series 
of `and` and `or` operators at the same level of indentation, as though they 
naturally evaluate in the order the programmer writes them. In fact, they have 
different levels of precedence, and the code example violates the other 
sections of PEP-8 that ask for the creation of a visual distinction in code 
between different precedence levels.

The example needs to pivot towards a series of operators which belong at the 
same precedence level. I have used `+` and `-` because they seemed more natural 
to form an example from than something like division and multiplication.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to