Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01ca04c

Browse files
committed
#3310: stop referring to basestring.
1 parent 6794aa3 commit 01ca04c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,8 @@ Python has two builtin functions that work with inheritance:
531531

532532
* Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)``
533533
is ``True`` since :class:`bool` is a subclass of :class:`int`. However,
534-
``issubclass(unicode, str)`` is ``False`` since :class:`unicode` is not a
535-
subclass of :class:`str` (they only share a common ancestor,
536-
:class:`basestring`).
534+
``issubclass(float, int)`` is ``False`` since :class:`float` is not a
535+
subclass of :class:`int`.
537536

538537

539538

0 commit comments

Comments
 (0)