[Python-checkins] GH-65022: Fix description of copyreg.pickle function (#102656)

nanjekyejoannah webhook-mailer at python.org
Mon Apr 24 13:26:47 EDT 2023


https://github.com/python/cpython/commit/0421ed44a9f9405269a8ceb9103451a04d8b90bb
commit: 0421ed44a9f9405269a8ceb9103451a04d8b90bb
branch: main
author: Furkan Onder <furkanonder at protonmail.com>
committer: nanjekyejoannah <33177550+nanjekyejoannah at users.noreply.github.com>
date: 2023-04-24T11:26:40-06:00
summary:

GH-65022: Fix description of copyreg.pickle function (#102656)

Fix description of copyreg.pickle function

files:
M Doc/library/copyreg.rst

diff --git a/Doc/library/copyreg.rst b/Doc/library/copyreg.rst
index 866b180f4bc3..2107215c0c19 100644
--- a/Doc/library/copyreg.rst
+++ b/Doc/library/copyreg.rst
@@ -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



More information about the Python-checkins mailing list