Message288141
I concur with Antoine.
copy.deepcopy() should be used with care since it recursively copies all referred data. In case of generators the data can be referred implicitly. Every global value cached in local variable, every passed argument, every nonlocal variable should be copied. This may not just wastes memory and CPU time, but change the semantic. |
|
Date |
User |
Action |
Args |
2017-02-19 15:01:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, pitrou, alexandre.vassalotti, cool-RR, bruno.dupuis, mont29 |
2017-02-19 15:01:18 | serhiy.storchaka | set | messageid: <1487516478.46.0.855704899268.issue11299@psf.upfronthosting.co.za> |
2017-02-19 15:01:18 | serhiy.storchaka | link | issue11299 messages |
2017-02-19 15:01:18 | serhiy.storchaka | create | |
|