]> granicus.if.org Git - python/commitdiff
#3310: stop referring to basestring.
authorGeorg Brandl <georg@python.org>
Wed, 16 Jul 2008 21:21:29 +0000 (21:21 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Jul 2008 21:21:29 +0000 (21:21 +0000)
Doc/tutorial/classes.rst

index b9db87b7e64837ac0458b8edd0b06df3022309f1..bf2d0aa94bfef5c3944a1209bf17345ebfef6f3b 100644 (file)
@@ -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`.