Skip to content

Commit 65940fa

Browse files
bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)
1 parent 1292aa6 commit 65940fa

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
@@ -33,8 +33,8 @@ Such constructors may be factory functions or class instances.
3333

3434
The optional *constructor* parameter, if provided, is a callable object which
3535
can be used to reconstruct the object when called with the tuple of arguments
36-
returned by *function* at pickling time. :exc:`TypeError` will be raised if
37-
*object* is a class or *constructor* is not callable.
36+
returned by *function* at pickling time. A :exc:`TypeError` is raised if the
37+
*constructor* is not callable.
3838

3939
See the :mod:`pickle` module for more details on the interface
4040
expected of *function* and *constructor*. Note that the

0 commit comments

Comments
 (0)