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

Brett Cannon brett at python.org
Thu Jun 1 17:08:59 EDT 2017


If you create an issue at github.com/python/peps and assign it to me I will
get to it someday. :)

On Thu, 1 Jun 2017 at 00:19 Victor Stinner <victor.stinner at gmail.com> wrote:

> 2017-05-31 19:27 GMT+02:00 Guido van Rossum <guido at python.org>:
> > I interpret the PEP (...)
>
> Right, the phrasing requires to "interpret" it :-)
>
> > (...) as saying that you should use braces everywhere but not
> > to add them in code that you're not modifying otherwise. (I.e. don't go
> on a
> > brace-adding rampage.) If author and reviewer of a PR disagree I would go
> > with "add braces" since that's clearly the PEP's preference. This is C
> code.
> > We should play it safe.
>
> Would someone be nice enough to try to rephrase the PEP 7 to explain
> that? Just to avoid further boring discussion on the C coding style...
>
> Victor
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/brett%40python.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170601/1ae69f50/attachment.html>


More information about the Python-Dev mailing list