iterators and views of lists
Anh Hai Trinh
anh.hai.trinh at gmail.com
Fri Dec 18 12:03:21 EST 2009
On Dec 18, 3:07 am, Brendan Miller <catph... at catphive.net> wrote:
> Well, it doesn't really need to be any slower than a normal list. You
> only need to use index and do extra additions because it's in python.
> However, if listagent were written in C, you would just have a pointer
> into the contents of the original list, and the length, which is all
> that list itself has.
You're right, I was thinking in Python instead of C. So the
translations in that case is really straight forward, using just
pointer arithmetic.
----aht
More information about the Python-list
mailing list