Dear tutor dudes,
I know that a for loop uses a an iterators next method in this way
for variable in iterator:
execute_code(variable)
is equivalent to
while True:
try:
variable = iterator.next()
except StopIteration:
break
else:
execute_code(variable)
Is there any syntax that uses the send method of an iterator?
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
