2001 Enchancement Wishlist

Fredrik Lundh fredrik at effbot.org
Fri Dec 29 22:31:29 CET 2000


Raymond Hettinger wrote:
> 1.  List.append(elem) and List.pop() are great.  Let's add two more
>      methods, List.prepend(elem) and List.leftpop().  The goal is to
>      make queues,deques, and reverse stacks easier, faster, and clearer
>      to implement.

what's wrong with insert(0, elem) and pop(0) ?

</F>





More information about the Python-list mailing list