RE: [Python-Dev] Single- vs. Multi-pass iterability
14 Jul
2002
14 Jul
'02
10:51 p.m.
From: Delaney, Timothy [mailto:tdelaney@avaya.com]
if iter(x) == iter(x): # this is *definitely* a single-pass iterable
Of course, that should have been if iter(x) is iter(x): # this is *definitely* a single-pass iterable Too much damned Java at the moment :( Tim Delaney
7985
Age (days ago)
7985
Last active (days ago)
0 comments
1 participants
participants (1)
-
Delaney, Timothy