[New-bugs-announce] [issue27252] Make dict views copyable
Serhiy Storchaka
report at bugs.python.org
Tue Jun 7 12:27:29 EDT 2016
New submission from Serhiy Storchaka:
Proposed patch adds support of dict views in the copy module.
Since dict views are immutable, copy.copy() just returns the same object.
copy.deepcopy() returns a frozenset for the dict_keys object, a tuple for the dict_values object, and a dict_items object for the dict_items object. Only needed data is copied (keys for dict_keys, values for dict_values).
----------
components: Library (Lib)
files: dict_views_copy.patch
keywords: patch
messages: 267701
nosy: gvanrossum, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Make dict views copyable
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43280/dict_views_copy.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27252>
_______________________________________
More information about the New-bugs-announce
mailing list