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
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