[Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!
Guido van Rossum
guido at python.org
Thu Apr 26 11:07:50 EDT 2018
More information about the Python-Dev mailing list
Thu Apr 26 11:07:50 EDT 2018
- Previous message (by thread): [Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!
- Next message (by thread): [Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just as I feared. While currently fixing this is just fixing a bug (nobody's code is going to break except perhaps some tests), with PEP 572 fixing this would be mandatory. On Thu, Apr 26, 2018 at 6:57 AM, Nick Coghlan <ncoghlan at gmail.com> wrote: > On 25 April 2018 at 18:23, Chris Angelico <rosuav at gmail.com> wrote: > >>>> x={print(2): print(1) for _ in [1]} > > 1 > > 2 > > > > Hmmmmmmmmm. One of these is not like the others... > > Huh, it looks like we missed checking dict comprehensions when we > fixed dict displays to evaluate keys before the corresponding values. > That would qualify as a reasonable request for improvement in Python > 3.8 :) > > Cheers, > Nick. > > -- > Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia > _______________________________________________ > 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/ > guido%40python.org > -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180426/e8b2358d/attachment.html>
- Previous message (by thread): [Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!
- Next message (by thread): [Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list