[Python-Dev] PEP 7 clarification request: braces

Nick Coghlan ncoghlan at gmail.com
Tue Jan 3 01:22:28 CET 2012

On Tue, Jan 3, 2012 at 12:54 AM, Benjamin Peterson <benjamin at python.org> wrote:
> I think it's fine Nick raised this. PEP 7 is not very explicit about
> braces at all.

I actually discovered in this thread that I've been misreading PEP 7
for going on 7 years now - I thought the brace usage example *did* use
"} else {" (mainly because I write my if statements that way, and
nobody had ever pointed out to me that the C style guide actually says

So I'm happy enough with leaving PEP 7 alone and letting the stylistic
inconsistencies stand (even going forward). I agree in these days of
auto-indenting editors and automated test suites, the maintenance
benefits of always requiring the braces are significantly less than
they used to be.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list