[Python-Dev] The new and improved PEP 572, same great taste with 75% less complexity!

Chris Angelico rosuav at gmail.com
Thu Apr 26 12:06:33 EDT 2018


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


More information about the Python-Dev mailing list