How to find the length of an iterator?

Diez B. Roggisch deetsNOSPAM at web.de
Thu Apr 29 09:32:02 EDT 2004


Diez B. Roggisch wrote:

> Its the nature of an iterator that it doesn't support anything beyond
> access to the current item and signaling when its finished. So if you need
> the length, try to get a hold on the underlying connection.

s/connection/collection/

Got confused on my new touchstream dvorak keyboard :)
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list