From b38e20e4ef79cf18da967cf4f0a15abe80855bea Mon Sep 17 00:00:00 2001 From: rodrigodesalvobraz Date: Fri, 1 Mar 2024 13:28:14 -0800 Subject: [PATCH] Delete out of the data comment from copyreg.py A comment states that copyreg is only useful for C objects, not for user-defined classes, which is at odds with its documentation. See more at https://stackoverflow.com/q/78087188/3358488 --- Lib/copyreg.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/copyreg.py b/Lib/copyreg.py index 578392409b403c..05618f30489950 100644 --- a/Lib/copyreg.py +++ b/Lib/copyreg.py @@ -1,8 +1,4 @@ -"""Helper to provide extensibility for pickle. - -This is only useful to add pickle support for extension types defined in -C, not for instances of user-defined classes. -""" +"""Helper to provide extensibility for pickle.""" __all__ = ["pickle", "constructor", "add_extension", "remove_extension", "clear_extension_cache"]