summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-22 14:07:36 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-22 14:07:36 (GMT)
commita7874d1505b461ec18777f0533e546bd62ab2c8a (patch)
tree6fc75f576b197115b6536e8f2951cb8969145178 /Doc/lib
parente67629774fd0b921d886f4f81f83c0368143efdd (diff)
downloadcpython-a7874d1505b461ec18777f0533e546bd62ab2c8a.zip
cpython-a7874d1505b461ec18777f0533e546bd62ab2c8a.tar.gz
cpython-a7874d1505b461ec18777f0533e546bd62ab2c8a.tar.bz2
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...
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libfuncs.tex2
1 files changed, 1 insertions, 1 deletions
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}