lists and sequences
Erik Max Francis
max at alcyone.com
Tue Oct 15 15:18:04 EDT 2002
Michal Vitecek wrote:
> why ditto for alist.pop(0)? is it because there can be multiple
> references to the same list/address?
No, because aList.pop(0) removes the first element and shifts the rest
down. A list in Python is implemented as a vector, not a linked list.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Life is an effort that deserves a better cause.
\__/ Karl Kraus
7 Sisters Productions / http://www.7sisters.com/
Web design for the future.
More information about the Python-list
mailing list