Message267383
I find it extremely suspicious that if you pickle the keys of a large object it also pickles that object. These are views, not copied data, for a reason. I also take back that this is okay for concrete dict.
As for your reason (http://bugs.python.org/issue23401#msg267317), that doesn't explain the use case for pickling keys views. If you forbade pickling them would any user code break? I seriously doubt it. Who on earth would want to pickle a keys view on an OrderedDict? It doesn't contain any information other than the underlying object. These views exist as alternate APIs to dicts, not as objects by themselves. |
|
Date |
User |
Action |
Args |
2016-06-05 05:12:54 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, pitrou, alexandre.vassalotti, stutzbach, serhiy.storchaka |
2016-06-05 05:12:54 | gvanrossum | set | messageid: <1465103574.67.0.861284621615.issue23401@psf.upfronthosting.co.za> |
2016-06-05 05:12:54 | gvanrossum | link | issue23401 messages |
2016-06-05 05:12:54 | gvanrossum | create | |
|