"""Indeed, I would always implement lists as .append/.pop(0) - it would not have occurred to my mind to write them as insert(0, x)/.pop(), as I consider .insert on a list unintuitive. """

">

(original) (raw)

\[Python-Dev\] collections module

"""Indeed, I would always implement lists as .append/.pop(0) - it would not have occurred to my mind to write them as insert(0, x)/.pop(), as I consider .insert on a list unintuitive. """

How about list.prepend()

-------------


Damien Morton


Lab49, Inc.

Phone: 212 966 3468


Email: dmorton@lab49.com


Web  : www.lab49.com