summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-11 22:27:51 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-11 22:27:51 (GMT)
commit93615657ec163f4f146ab65a2db7266b59abd155 (patch)
tree04454c339b3f35489a01d0c316cc28f9783f8f3b /Doc
parentcb953d72d219155eb1e9b89787c30ca7e177f069 (diff)
downloadcpython-93615657ec163f4f146ab65a2db7266b59abd155.zip
cpython-93615657ec163f4f146ab65a2db7266b59abd155.tar.gz
cpython-93615657ec163f4f146ab65a2db7266b59abd155.tar.bz2
Document the exceptions that now get raised on invalid parameters.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcopyreg.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libcopyreg.tex b/Doc/lib/libcopyreg.tex
index 2032172..bdeca88 100644
--- a/Doc/lib/libcopyreg.tex
+++ b/Doc/lib/libcopyreg.tex
@@ -15,7 +15,9 @@ functions or class instances.
\begin{funcdesc}{constructor}{object}
- Declares \var{object} to be a valid constructor.
+ Declares \var{object} to be a valid constructor. If \var{object} is
+ not callable (and hence not valid as a constructor), raises
+ \exception{TypeError}.
\end{funcdesc}
\begin{funcdesc}{pickle}{type, function\optional{, constructor}}
@@ -25,5 +27,6 @@ functions or class instances.
tuple. The optional \var{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 \var{function} at
- pickling time.
+ pickling time. \exception{TypeError} will be raised if
+ \var{object} is a class or \var{constructor} is not callable.
\end{funcdesc}