A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-October/114161.html below:

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

[Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bit [Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bitBenjamin 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4