New submission from Inada Naoki <songofacandy@gmail.com>:
Although there are dict.copy() and PyDict_Copy(), dict_merge can be used for copying dict.
* d={}; d.update(orig)
* d=dict(orig)
* d=orig.copy() # orig has many dummy keys.
----------
components: Interpreter Core
messages: 374550
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Optimize dict_merge for copy
versions: Python 3.10
_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue41431>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
Although there are dict.copy() and PyDict_Copy(), dict_merge can be used for copying dict.
* d={}; d.update(orig)
* d=dict(orig)
* d=orig.copy() # orig has many dummy keys.
----------
components: Interpreter Core
messages: 374550
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Optimize dict_merge for copy
versions: Python 3.10
_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue41431>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com