[Python-ideas] list…pushed, or something

Guido van Rossum guido at python.org
Thu Mar 28 05:52:46 CET 2013

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
> Python-ideas at python.org
> http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>

--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130327/bb8875e7/attachment.html>

More information about the Python-ideas mailing list