[Python-ideas] New list methods

Jared Grubb jared.grubb at gmail.com
Tue May 5 19:10:17 CEST 2009


On 5 May 2009, at 09:49, Oleg Broytmann wrote:
> On Tue, May 05, 2009 at 09:25:16AM -0700, Zac Burns wrote:
>> I would like to see the following methods added to lists...
>>
>> rindex : Return first index of value from the right
>> rremove: Return first occurence of value from the right.
>
>   l.rremove() is the same as l.pop() or l.pop(-1)

No, pop removes an element; rremove removes an element of a given value.

Jared



More information about the Python-ideas mailing list