[Python-Dev] PEP 7 clarification request: braces (original) (raw)
Benjamin Peterson benjamin at python.org
Mon Jan 2 21:31:57 CET 2012
- Previous message: [Python-Dev] PEP 7 clarification request: braces
- Next message: [Python-Dev] PEP 7 clarification request: braces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2012/1/1 Nick Coghlan <ncoghlan at gmail.com>:
if (cond) { statement; } else { statement; }
I might add that assuming you have braces, PEP 7 would want you to format it as
if (cond) { statement; } else { more_stuff; }
-- Regards, Benjamin
- Previous message: [Python-Dev] PEP 7 clarification request: braces
- Next message: [Python-Dev] PEP 7 clarification request: braces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]