Commit 4ee2ff36 authored by Raymond Hettinger's avatar Raymond Hettinger

Clarified that TypeErrors can be raised by any

function (not just builtins).

The issue arose in a thread on comp.lang.python.
parent ed9bf128
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment