bpo-41431: Optimize dict_merge for copy (GH-21674) · python/cpython@db6d9a5 · GitHub
Skip to content

Commit db6d9a5

Browse files
authored
bpo-41431: Optimize dict_merge for copy (GH-21674)
1 parent 602a971 commit db6d9a5

3 files changed

Lines changed: 75 additions & 34 deletions

File tree

Lib/test/test_ordered_dict.py

Lines changed: 6 additions & 5 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Optimize ``dict_merge()`` for copying dict (e.g. ``dict(d)`` and
2+
``{}.update(d)``).

Objects/dictobject.c

Lines changed: 67 additions & 29 deletions

0 commit comments

Comments
 (0)