This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients corona10, eric.smith, petr.viktorin, rhettinger, serhiy.storchaka, vstinner
Date 2022-03-28.15:58:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648483081.75.0.306374055549.issue47143@roundup.psfhosted.org>
In-reply-to
Content
More recent copy.copy() change: commit 5c1c3b4f197c57952760be37d77d73669284a607 of bpo-11480:

    Issue #11480: Fixed copy.copy to work with classes with custom metaclasses.

+    try:
+        issc = issubclass(cls, type)
+    except TypeError: # cls is not a class
+        issc = False
+    if issc:
+        # treat it as a regular class:
+        return _copy_immutable(x)
History
Date User Action Args
2022-03-28 15:58:01vstinnersetrecipients: + vstinner, rhettinger, eric.smith, petr.viktorin, serhiy.storchaka, corona10
2022-03-28 15:58:01vstinnersetmessageid: <1648483081.75.0.306374055549.issue47143@roundup.psfhosted.org>
2022-03-28 15:58:01vstinnerlinkissue47143 messages
2022-03-28 15:58:01vstinnercreate