[docs] [issue16239] PEP8 arithmetic operator examples

Ezio Melotti report at bugs.python.org
Thu Oct 25 20:11:41 CEST 2012

Ezio Melotti added the comment:

As I see it:
For  c = (a + b) * (a - b)  the hint (and the actual priority) is given by the (), the spaces around the +/- are not necessary but don't affect readability.
For  c = (a+b) * (a-b)  the hints are given both by the () and the spacing, the lack of spaces around the +/- is not necessary but doesn't affect readability.
For  c = a+b * a-b  the hints are given both by the spacing and they are wrong.


Python tracker <report at bugs.python.org>

More information about the docs mailing list