From a7874d1505b461ec18777f0533e546bd62ab2c8a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 22 Jun 1998 14:07:36 +0000 Subject: 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... --- Doc/lib/libfuncs.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 3937c29..f00d81d 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} -- cgit v0.12