[Python-ideas] add fluent operator to everything
Bruce Leban
bruce at leban.us
Wed Feb 20 13:24:25 EST 2019
Here's a syntax that solves this using the new operators _:= and ,_
a = [1,2,3]
( _:= a ,_ .append(4) ,_ .sort() )
Personally, I find this a bit harder to read on one line and would break it
up like this:
(_:= a
,_ .append(4)
,_ . .sort()
)
--- Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190220/be9a7ef7/attachment.html>
More information about the Python-ideas
mailing list