summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tutorial/classes.rst')
-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`.