summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-16 21:21:29 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-16 21:21:29 (GMT)
commit01ca04cc49b4f005930bff31d9ac898922e4a917 (patch)
treed76ad75f5bd62c298fc6ad0fc1b088b0335f37f4 /Doc/tutorial
parent6794aa3cb39f9133e334663a4b293faa8958eafb (diff)
downloadcpython-01ca04cc49b4f005930bff31d9ac898922e4a917.zip
cpython-01ca04cc49b4f005930bff31d9ac898922e4a917.tar.gz
cpython-01ca04cc49b4f005930bff31d9ac898922e4a917.tar.bz2
#3310: stop referring to basestring.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/classes.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index b9db87b..bf2d0aa 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -531,9 +531,8 @@ Python has two builtin functions that work with inheritance:
* Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)``
is ``True`` since :class:`bool` is a subclass of :class:`int`. However,
- ``issubclass(unicode, str)`` is ``False`` since :class:`unicode` is not a
- subclass of :class:`str` (they only share a common ancestor,
- :class:`basestring`).
+ ``issubclass(float, int)`` is ``False`` since :class:`float` is not a
+ subclass of :class:`int`.