Re: [Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bit
21 Oct
2011
21 Oct
'11
6:39 p.m.
2011/10/21 Eric V. Smith
On 10/21/2011 12:31 PM, Benjamin Peterson wrote:
2011/10/21 Eric V. Smith
: What's the logic for adding some braces, but removing others?
No braces if everything is a one-liner, otherwise braces everywhere.
Not sure what "everything" means here. My specific question is why braces were added here: - if (tb == Py_None) + if (tb == Py_None) { tb = NULL; + }
Because an else if follows it. -- Regards, Benjamin
4569
Age (days ago)
4569
Last active (days ago)
0 comments
1 participants
participants (1)
-
Benjamin Peterson