On 02/27/2018 02:27 PM, Chris Angelico wrote:
PEP: 572
Because:
a = (2 as a)
does not evaluate to 2
and because some statements, such as 'for' and 'while' can cover many, many lines (leaving plenty of potential for
confusion over which variable disappear at the end and which persist):
-1
I would love to see an expression assignment syntax, but
Statement-Local-Name-Binding is confusing and non-intuitive.
Is there already a PEP about expression assignment? If not, that would be a
good one to write.
--
~Ethan~
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/