New submission from Serhiy Storchaka: Mapping views supports copying and deepcopying by default (using pickle protocol). But copy.deepcopy() is not efficient for KeysView and ValuesView. It copies all keys and values, while KeysView needs copying only keys and ValuesView needs copying only values.
Proposed patch implements more efficient deepcopy support for KeysView and ValuesView. ---------- components: Library (Lib) files: MappingView_deepcopy.patch keywords: patch messages: 267706 nosy: gvanrossum, rhettinger, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: More efficient deepcopying of Mapping type: resource usage versions: Python 3.6 Added file: http://bugs.python.org/file43281/MappingView_deepcopy.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27253> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com