diff options
author | Furkan Onder <furkanonder@protonmail.com> | 2023-04-24 17:26:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 17:26:40 (GMT) |
commit | 0421ed44a9f9405269a8ceb9103451a04d8b90bb (patch) | |
tree | f7ea5d6f7ee5384a25603335b52e189bab248351 /Doc | |
parent | f8abfa331421e2c28388c5162f37820495e3c2ee (diff) | |
download | cpython-0421ed44a9f9405269a8ceb9103451a04d8b90bb.zip cpython-0421ed44a9f9405269a8ceb9103451a04d8b90bb.tar.gz cpython-0421ed44a9f9405269a8ceb9103451a04d8b90bb.tar.bz2 |
GH-65022: Fix description of copyreg.pickle function (#102656)
Fix description of copyreg.pickle function
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/copyreg.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/copyreg.rst b/Doc/library/copyreg.rst index 866b180..2107215 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 |