[issue11299] Allow deepcopying paused generators
Ram Rachum
report at bugs.python.org
Sun Dec 8 20:38:29 CET 2013
Ram Rachum added the comment:
"Instead of copy.deepcopy, why not call itertools.tee?"
It's hard for me to give you a good answer because I submitted this ticket 2 years ago, and nowadays I don't have personal interest in it anymore.
But, I think `itertools.tee` wouldn't have worked for me, because it just saves the value rather than really duplicating the generator.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11299>
_______________________________________
More information about the Python-bugs-list
mailing list