Message205600
> The issue here is copy.deepcopy will raise an exception whenever it
> encounters a generator. We would like to do better here.
> Unfortunately, using itertools.tee is not a solution here because it
> does not preserve the type of the object.
Indeed, itertools.tee is not a general solution for copy.deepcopy, but
it's a good solution to *avoid* calling copy.deepcopy when you simply
want to "fork" a generator.
IMHO supporting live generators (and therefore frame objects) in
copy.deepcopy would be a waste of effort. |
|
Date |
User |
Action |
Args |
2013-12-08 19:59:02 | pitrou | set | recipients:
+ pitrou, terry.reedy, alexandre.vassalotti, cool-RR, bruno.dupuis, mont29 |
2013-12-08 19:59:02 | pitrou | link | issue11299 messages |
2013-12-08 19:59:02 | pitrou | create | |
|