PEP 234: Iterators

Bernhard Herzog bh at intevation.de
Sat May 5 19:21:19 CEST 2001


Just van Rossum <just at letterror.com> writes:

> the xrange object supports random access, whereas an iterator does
> not.

Well, I see no reason why an iterator object couldn't provide random
access in addition to the iterator interface.

  Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                               http://mapit.de/



More information about the Python-list mailing list