On Sun, May 21, 2017 at 10:43 AM, Paul Laos <[email protected]> wrote:

> By default push(obj) would insert an object to the end of the list, while
> push(obj, index) would insert the object at index, just like pop() removes
> (and returns) the object at the end of the list, and pop(index) removes
> (and returns) the object at the index.


The name asymmetry between .pop() and .append() has always bothered me.

Cheers!


-- 
Juancarlo *Añez*
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to