Skip to content

Commit 0421ed4

Browse files
authored
GH-65022: Fix description of copyreg.pickle function (#102656)
Fix description of copyreg.pickle function
1 parent f8abfa3 commit 0421ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/copyreg.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Such constructors may be factory functions or class instances.
2828
.. function:: pickle(type, function, constructor_ob=None)
2929

3030
Declares that *function* should be used as a "reduction" function for objects
31-
of type *type*. *function* should return either a string or a tuple
32-
containing two or three elements. See the :attr:`~pickle.Pickler.dispatch_table`
31+
of type *type*. *function* must return either a string or a tuple
32+
containing two or five elements. See the :attr:`~pickle.Pickler.dispatch_table`
3333
for more details on the interface of *function*.
3434

3535
The *constructor_ob* parameter is a legacy feature and is now ignored, but if

0 commit comments

Comments
 (0)