20 Apr
2020
20 Apr
'20
4:12 p.m.
On 4/20/20 11:25 AM, J. Pic wrote:
Hi all,
Currently, list.append(x) mutates the list and returns None.
It would be a little syntactic sugar to return x, for example:
something = mylist.append(Something())
What do you think ?
Now you can do this (but it could be unpopular): mylist.append(something := Something()) --Ned.