[Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bit

Benjamin Peterson benjamin at python.org
Fri Oct 21 20:39:45 CEST 2011


2011/10/21 Eric V. Smith <eric at trueblade.com>:
> On 10/21/2011 12:31 PM, Benjamin Peterson wrote:
>> 2011/10/21 Eric V. Smith <eric at trueblade.com>:
>>> 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


More information about the Python-Dev mailing list