Follow current recommended practice in an example: Use isinstance() to
perform a type test instead of type(x) == types.FoobarType. In example
for type().
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 51edb33..36582da 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -606,7 +606,7 @@
\bcode\begin{verbatim}
>>> import types
->>> if type(x) == types.StringType: print "It's a string"
+>>> if isinstance(x, types.StringType): print "It's a string"
\end{verbatim}\ecode
\end{funcdesc}