Pop a list from beginning ? and memory saving...
David Eppstein
eppstein at ics.uci.edu
Sun Jun 2 11:07:31 EDT 2002
In article <3CF9EB89.7CA7204B at doc.ic.ac.uk>,
Benjamin Tai <bt98 at doc.ic.ac.uk> wrote:
> You could try a.pop(0), which pop the first instance of the list, like a FIFO.
But he said the list was huge, so this will be very slow.
See e.g. <http://groups.google.com/groups?th=e79e99edc138cb02> for prior
discussion of this issue and comparison of implementation strategies.
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list