mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
[3.11] gh-65022: Fix description of tuple return value in copyreg (GH-103892) (#104098)
(cherry picked from commit 587f2f0180
)
This commit is contained in:
parent
5e76305236
commit
f9231a09be
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ Such constructors may be factory functions or class instances.
|
||||||
.. function:: pickle(type, function, constructor_ob=None)
|
.. function:: pickle(type, function, constructor_ob=None)
|
||||||
|
|
||||||
Declares that *function* should be used as a "reduction" function for objects
|
Declares that *function* should be used as a "reduction" function for objects
|
||||||
of type *type*. *function* should return either a string or a tuple
|
of type *type*. *function* must return either a string or a tuple
|
||||||
containing two or three 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*.
|
for more details on the interface of *function*.
|
||||||
|
|
||||||
The *constructor_ob* parameter is a legacy feature and is now ignored, but if
|
The *constructor_ob* parameter is a legacy feature and is now ignored, but if
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue