From: Guido van Rossum Date: Mon, 22 Jun 1998 14:07:36 +0000 (+0000) Subject: Revert the change of revision 1.30. While it's in general a laudable X-Git-Tag: v1.5.2a1~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7874d1505b461ec18777f0533e546bd62ab2c8a;p=python Revert the change of revision 1.30. While it's in general a laudable goal to use isinstance(x, y) instead of comparing type(x) to y, it doesn't make sense to change this in the example code for the type() builtin... --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 3937c29067..f00d81d774 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -602,7 +602,7 @@ For instance: \begin{verbatim} >>> import types ->>> if isinstance(x, types.StringType): print "It's a string" +>>> if type(x) == types.StringType: print "It's a string" \end{verbatim} \end{funcdesc}