I think this

>>> a = [1,2,3]
>>> _ = a
>>> ( _ .append(4), _ .sort()    )
(None, None)

is clearer than

a = [1,2,3]
(    _:=    a    ,_    .append(4)    ,_    .sort()    )

And it works in every version of Python3 (and Python2 I expect).

-- 
Jonathan
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to