diff -r ea03b0fa5bd3 Doc/library/copyreg.rst --- a/Doc/library/copyreg.rst Sun Mar 02 09:28:24 2014 +0100 +++ b/Doc/library/copyreg.rst Sun Mar 02 09:51:01 2014 +0100 @@ -30,8 +30,8 @@ The optional *constructor* parameter, if provided, is a callable object which can be used to reconstruct the object when called with the tuple of arguments - returned by *function* at pickling time. :exc:`TypeError` will be raised if - *object* is a class or *constructor* is not callable. + returned by *function* at pickling time. A :exc:`TypeError` will be raised if + *constructor* is not callable. See the :mod:`pickle` module for more details on the interface expected of *function* and *constructor*. Note that the @@ -46,7 +46,7 @@ it will be used: >>> import copyreg, copy, pickle - >>> class C(object): + >>> class C: ... def __init__(self, a): ... self.a = a ...