[Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity! (original) (raw)
Jim F.Hilliard d.f.hilliard at gmail.com
Thu Apr 26 12:19:43 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 ]
FWIW There's an existing issue (bpo 29652 <https://bugs.python.org/issue29652>) for the order of evaluation in dict-comps.
Best Regards,
Jim Fasarakis Hilliard
On Thu, Apr 26, 2018 at 7:06 PM, Chris Angelico <rosuav at gmail.com> wrote:
On Fri, Apr 27, 2018 at 2:02 AM, Guido van Rossum <gvanrossum at gmail.com> wrote: > Maybe the order for d[k] = v should also be reconsidered?
If so, it would be something like: 1) Evaluate d 2) Evaluate k 3) Evaluate v 4) Call d.setitem(k, v), via slots etc In a vacuum, I don't have a problem with that. But I suspect that it'd break more code than the comprehensions changes do. ChrisA
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/d. f.hilliard%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180426/aba77aea/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 ]