[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch is committed in changeset 9afe77ad549b. Thanks for update Brandon. Citing the original source and stating the rationale for this suggestion was a great addition. -- nosy: +orsenthil resolution: -> fixed stage: -> resolved status: open -> c

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9afe77ad549b by Senthil Kumaran in branch 'default': PEP-8 Update on Knuth style breaking of a long formula. #issue26780 https://hg.python.org/peps/rev/9afe77ad549b -- nosy: +python-dev ___ Python tracker

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Guido van Rossum
Guido van Rossum added the comment: Patch LGTM. Note that the and/or example was in the PEP before this discussion broke out. The discussion also at some point (before your Knuth quote was discovered) veered in the direction of making and/or a special case, perhaps because it's more likely th

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
Changes by Brandon Rhodes : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
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 prec

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
Changes by Brandon Rhodes : Added file: http://bugs.python.org/file42489/pep8-knuth.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
Changes by Brandon Rhodes : Removed file: http://bugs.python.org/file42487/pep8-knuth.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
New submission from Brandon Rhodes: I am delighted to see that PEP-8 has pivoted to breaking long formulae before, rather than after, each binary operator! But I would like to pivot the PEP away from citing my own PyCon Canada talk as the authority on the matter, and toward citing Knuth himsel