[Python-ideas] add fluent operator to everything

Jonathan Fine jfine2358 at gmail.com
Wed Feb 20 13:52:40 EST 2019


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


More information about the Python-ideas mailing list