list.append(x) could return x
20 Apr
2020
20 Apr
'20
3:25 p.m.
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 ? Thanks in advance for your replies -- ∞
1438
Age (days ago)
1438
Last active (days ago)
10 comments
7 participants
participants (7)
-
Andrew Barnert
-
Christopher Barker
-
gyro funch
-
J. Pic
-
Ned Batchelder
-
Rhodri James
-
Richard Damon