Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6794aa3 commit 01ca04cCopy full SHA for 01ca04c
1 file changed
Doc/tutorial/classes.rst
@@ -531,9 +531,8 @@ Python has two builtin functions that work with inheritance:
531
532
* Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)``
533
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`).
+ ``issubclass(float, int)`` is ``False`` since :class:`float` is not a
+ subclass of :class:`int`.
537
538
539
0 commit comments