[Tutor] Is generator function reusable?

ammar azif ceasar102 at yahoo.com
Sat Mar 17 09:54:56 CET 2007


Lets say a generator function instance is created and has finished its iteration.
Can that instance be reused again? can it accept anymore values? or we should discard it and create a new generator instance.

Thanks

 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070317/48609717/attachment.htm 


More information about the Tutor mailing list