]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-65022: Fix description of copyreg.pickle function (#102656)
authorFurkan Onder <furkanonder@protonmail.com>
Mon, 24 Apr 2023 17:26:40 +0000 (20:26 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 17:26:40 +0000 (11:26 -0600)
Fix description of copyreg.pickle function

Doc/library/copyreg.rst

index 866b180f4bc3b829bc13e59d04a05e537badadd8..2107215c0c19674efb3189ed259559b6ee648de1 100644 (file)
@@ -28,8 +28,8 @@ Such constructors may be factory functions or class instances.
 .. function:: pickle(type, function, constructor_ob=None)
 
    Declares that *function* should be used as a "reduction" function for objects
-   of type *type*.  *function* should return either a string or a tuple
-   containing two or three elements. See the :attr:`~pickle.Pickler.dispatch_table`
+   of type *type*.  *function* must return either a string or a tuple
+   containing two or five elements. See the :attr:`~pickle.Pickler.dispatch_table`
    for more details on the interface of *function*.
 
    The *constructor_ob* parameter is a legacy feature and is now ignored, but if