[python-committers] Poll: Do you like the PEP 572 Assignment Expressions?

M.-A. Lemburg mal at egenix.com
Wed May 2 09:11:32 EDT 2018


-1 in the current form, since an expression such as

    [y := f(x), x/y] ...

is confusing (I'd read this as [y := (f(x), x/y)]

Using explicit parens around it would resolve this issue:

    [(y := f(x)), x/y] ...

but even with that, I'm not excited about the additional
line noise this adds - there's a reason why we have for-loops
in the language after all, explicit is better than having to
look thrice, etc. etc. :-)

Cheers,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, May 02 2018)
>>> Python Projects, Coaching and Consulting ...  http://www.egenix.com/
>>> Python Database Interfaces ...           http://products.egenix.com/
>>> Plone/Zope Database Interfaces ...           http://zope.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/
                      http://www.malemburg.com/


On 02.05.2018 11:49, Victor Stinner wrote:
> Hi,
> 
> I would like to start a poll on Chris Angelico's PEP 572 "Assignment
> Expressions", restricted to Python core developers, to prepare the
> talk at the Language Summit:
> 
>    https://www.python.org/dev/peps/pep-0572/
> 
> The poll is on the *current* PEP. I propose 4 choices:
> 
> * +1: you like the PEP
> * -1: you dislike the PEP
> * 0: you are not sure if you like it or not, or you have no opinon
> * don't reply to this poll :-)
> 
> Just reply to this email with "+1", "0", "-1". Please don't elaborate
> here, it's just a quick poll, use python-dev if you want to talk :-)
> 
> The poll will end next Tuesday, May 8, the day before the Language Summit.
> 
> I propose a poll because I'm unable to track the opinion of each core
> dev, too many emails have been sent to python-dev, and maybe some
> people changed their mind during the long discussion (which started in
> February) :-)
> 
> Note: Obviously, it's just a poll, not a vote. Guido van Rossum is the
> one who will pronounce himself on the PEP, to accept to reject it, so
> the only one allowed to vote ;-)
> 
> Victor
> _______________________________________________
> python-committers mailing list
> python-committers at python.org
> https://mail.python.org/mailman/listinfo/python-committers
> Code of Conduct: https://www.python.org/psf/codeofconduct/
> 



More information about the python-committers mailing list