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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27252>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to