On 25 April 2018 at 18:23, Chris Angelico <[email protected]> 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 | [email protected] | Brisbane, Australia _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
