◐ Shell
clean mode source ↗

Message 288165 - Python tracker

All changes to Lib/test/test_copy.py have already been committed.

Perhaps the following hunks from the latest patch can still be useful:

-try:
-    d[types.CodeType] = _deepcopy_atomic
-except AttributeError:
-    pass
+d[types.CodeType] = _deepcopy_atomic

---

 def _deepcopy_tuple(x, memo):
+    if not x:
+        return x

---

-        try:
-            issc = issubclass(cls, type)
-        except TypeError: # cls is not a class (old Boost; see SF #502085)
-            issc = 0
-        if issc:
+        if issubclass(cls, type):