Scott David Daniels wrote: > iter(elem in lst if elem[3] == x).next() > > Does this look any better? At least it stops when the answer is found.
Next time you'll recommend
if (a>b) == True:
# ...
Watch out, you're on a slippery slope here :-)
Peter
--
http://mail.python.org/mailman/listinfo/python-list
