Re: [Tutor] Is generator function reusable?

2007-03-17 Thread Kent Johnson
ammar azif wrote: > 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. In general, no, you can't reuse any iterator, including the ge

[Tutor] Is generator function reusable?

2007-03-17 Thread ammar azif
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