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
  • Loading branch information
hauntsaninja authored May 2, 2023
1 parent 8611e7b commit 587f2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/copyreg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Such constructors may be factory functions or class instances.

Declares that *function* should be used as a "reduction" function for objects
of type *type*. *function* must return either a string or a tuple
containing two or five elements. See the :attr:`~pickle.Pickler.dispatch_table`
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 587f2f0

Please sign in to comment.