[Python-ideas] reiter: decorator to make generators reiterable

Ram Rachum cool-rr at cool-rr.com
Fri Jun 4 01:17:46 CEST 2010


Mathias Panzenböck <grosser.meister.morti at ...> writes:

> 
> I think this decorator sould be included in itertools:
> 
> from functools import wraps
> 
> class ReIter(object):
> 
>     ...
> 
> Or is there already such a thing and I missed it?
> 
> 	-panzi

It looks pretty cool to me. I'll probably include it in my personal project, and 
it would be cool if it'll be added to itertools. (Along with many other things 
that should be added to itertools.)

Ram.






More information about the Python-ideas mailing list