This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients alexandre.vassalotti, gvanrossum, pitrou, rhettinger, serhiy.storchaka, stutzbach
Date 2016-06-05.05:12:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465103574.67.0.861284621615.issue23401@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-06-05 05:12:54gvanrossumsetrecipients: + gvanrossum, rhettinger, pitrou, alexandre.vassalotti, stutzbach, serhiy.storchaka
2016-06-05 05:12:54gvanrossumsetmessageid: <1465103574.67.0.861284621615.issue23401@psf.upfronthosting.co.za>
2016-06-05 05:12:54gvanrossumlinkissue23401 messages
2016-06-05 05:12:54gvanrossumcreate