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 <rep...@bugs.python.org> <http://bugs.python.org/issue11299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com