Steven D'Aprano wrote: > Worse, because comparing an iterator consumes items, you can easily get > crazy results like the following: [snip] However, that doesn't stop the "in" operator: >>> a = (x for x in xrange(5)) >>> 3 in a True >>> list(a) [4] I'm not sure if I like it, but at least it's probably a lot more useful than icmp. Carl Banks