On Jan 2, 2012, at 12:31 PM, Benjamin Peterson wrote:

> I might add that assuming you have braces, PEP 7 would want you to format it 
> as
> 
> if (cond) {
>    statement;
> }
> else {
>    more_stuff;
> }
> 


Running  ``grep -B1 else Objects/*c`` shows that we've happily lived with a 
mixture of styles for a very long time.
ISTM, our committers have had good instincts about when braces add clarity and 
when they add clutter.
If Nick pushes through an always-use-braces mandate, A LOT of code will need to 
be changed.


Raymond



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to