From: Raymond Hettinger Date: Mon, 4 Aug 2003 08:33:50 +0000 (+0000) Subject: Clarified that TypeErrors can be raised by any X-Git-Tag: v2.4a1~1805 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ee2ff36d0581ba6958d38a7a4ee5a1f0df9ca65;p=python Clarified that TypeErrors can be raised by any function (not just builtins). The issue arose in a thread on comp.lang.python. --- diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex index 1f3913654c..0dccafc442 100644 --- a/Doc/lib/libexcs.tex +++ b/Doc/lib/libexcs.tex @@ -322,7 +322,7 @@ Raised when an \keyword{assert} statement fails. \end{excdesc} \begin{excdesc}{TypeError} - Raised when a built-in operation or function is applied to an object + Raised when an operation or function is applied to an object of inappropriate type. The associated value is a string giving details about the type mismatch. \end{excdesc}