On 21/05/17 15:43, Paul Laos wrote:
push(obj) would be
equivalent to insert(index = -1, object), having -1 as the default index
parameter. In fact, push() could replace both append() and insert() by
unifying them.
I don't think list.insert() with an index of -1 does what you think it does:
>I think the first place to start would be to either set a default argument for
>"insert"
>or add an optional argument for "append", but in both cases that would again be
>duplicating functionality so I don't see the point.
- Todd
That would be fine too; the main idea is just having a method