list.pop(0) vs. collections.dequeue

Duncan Booth duncan.booth at invalid.invalid
Sat Jan 23 17:29:23 CET 2010

Roy Smith <roy at> wrote:

> I'm looking at  It shows all the operations
> of a list.  What it does not show is their cost.  For pop(), it has a
> note: 
> "The pop() method is only supported by the list and array types. The 
> optional argument i defaults to -1, so that by default the last item
> is removed and returned".

The page you should probably be looking at is

More information about the Python-list mailing list