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/2017-June/148224.html below:

[Python-Dev] PEP 7 and braces { .... } on if

[Python-Dev] PEP 7 and braces { .... } on if [Python-Dev] PEP 7 and braces { .... } on ifBarry Warsaw barry at python.org
Sat Jun 3 16:30:24 EDT 2017
On Jun 03, 2017, at 07:25 PM, Serhiy Storchaka wrote:

>But the latter example continuation lines are intended at the same level as
>the following block of code. I propose to make exception for that case and
>allow moving an open brace to the start of the next line.
>
>     if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
>         type->tp_dictoffset == b_size &&
>         (size_t)t_size == b_size + sizeof(PyObject *))
>     {
>         return 0; /* "Forgive" adding a __dict__ only */
>     }

Agreed!

https://github.com/python/peps/issues/283
https://github.com/python/peps/pull/284

Cheers,
-Barry
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