[Python-Dev] PEP 7 clarification request: braces (original) (raw)

Raymond Hettinger raymond.hettinger at gmail.com
Mon Jan 2 09:47:14 CET 2012


On Jan 1, 2012, at 8:44 PM, Nick Coghlan wrote:

I've been having an occasional argument with Benjamin regarding braces in 4-line if statements:

if (cond) statement; else statement; vs. if (cond) { statement; } else { statement; }

Really? Do we need to have a brace war? People have different preferences. The standard library includes some of both styles depending on what the maintainer thought was cleanest to their eyes in a given context.

Raymond



More information about the Python-Dev mailing list