Tuple slices

George Sakkis gsakkis at rutgers.edu
Tue Jan 25 11:07:34 EST 2005


An iterator is perfectly ok if all you want is to iterate over the
elements of a view, but as you noted, iterators are less flexible than
the underlying sequence. The view should be (or at least appear)
identical in functionality (i.e. public methods) with its underlying
sequence.

George




More information about the Python-list mailing list