We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb1e6c commit 7710226Copy full SHA for 7710226
1 file changed
Lib/copy.py
@@ -107,10 +107,6 @@ def copy(x):
107
weakref.ref, super})
108
_copy_builtin_containers = frozenset({list, dict, set, bytearray})
109
110
-import _testcapi
111
-_testcapi.pyobject_enable_deferred_refcount(_copy_atomic_types)
112
-_testcapi.pyobject_enable_deferred_refcount(_copy_builtin_containers)
113
-
114
def deepcopy(x, memo=None):
115
"""Deep copy operation on arbitrary Python objects.
116
@@ -172,11 +168,6 @@ def deepcopy(x, memo=None):
172
168
173
169
_deepcopy_dispatch = d = {}
174
170
175
-#import _testcapi
176
-#_testcapi.pyobject_enable_deferred_refcount(_atomic_types)
177
-#_testcapi.pyobject_enable_deferred_refcount(_deepcopy_dispatch)
178
179
180
171
181
def _deepcopy_list(x, memo, deepcopy=deepcopy):
182
y = []
0 commit comments