Skip to content

Commit

Permalink
pythongh-65022: Fix description of tuple return value in copyreg (pyt…
Browse files Browse the repository at this point in the history
…hon#103892)

(cherry picked from commit 587f2f0)
  • Loading branch information
hauntsaninja committed May 2, 2023
1 parent 5e76305 commit f1d2637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/copyreg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 between two and six 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
Expand Down

0 comments on commit f1d2637

Please sign in to comment.