Also, we shouldn't introduce multiple ways of spelling the same operation if we can help it.
On Wednesday, March 27, 2013, Terry Reedy wrote:
On 3/27/2013 10:29 PM, Shane Green wrote:
I'm not sure if there's anything inherently wrong with this idea, and I am well aware how incredibly easy it is to implement as an extension of the built-ins, but, I find it very useful to have /variations/ of list().append(obj) and set().add(obj) that return, obj.
There are other people who agree with you, but it is Guido's design decision from the beginning of Python that mutation methods do not return the object mutated.
-- Terry Jan Reedy
______________________________**_________________ Python-ideas mailing list Pythonemail@example.com http://mail.python.org/**mailman/listinfo/python-ideashttp://mail.python.org/mailman/listinfo/python-ideas