Skip to content

Commit f1d2637

Browse files
committed
pythongh-65022: Fix description of tuple return value in copyreg (python#103892)
(cherry picked from commit 587f2f0)
1 parent 5e76305 commit f1d2637

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 between two and six 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)