iterators

Daniel Dittmar daniel.dittmar at sap.com
Thu May 13 04:58:38 EDT 2004


Manlio Perillo wrote:
> Python support forward iterators, but what about bidirectional and
> random access ones?

'random access iterators' are called 'Sequence' types in Python
(http://www.python.org/doc/2.3.3/lib/typesseq.html). You can create your own
sequence types by implementing some special methods
(http://www.python.org/doc/2.3.3/ref/sequence-types.html).

Daniel






More information about the Python-list mailing list