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

Nick Coghlan ncoghlan at gmail.com
Thu Apr 26 09:57:58 EDT 2018


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


More information about the Python-Dev mailing list