summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-22 03:09:19 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-22 03:09:19 (GMT)
commit28053fb174cd548629b8c94cba02ce837aeb9e5b (patch)
treeb5450a4b4e121f3a9b649aa4f6e00a4dcbde88bf /Doc/library/inspect.rst
parentd4bbab278fc5021f5adbf4ae336e2754ca2037b3 (diff)
downloadcpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.zip
cpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.tar.gz
cpython-28053fb174cd548629b8c94cba02ce837aeb9e5b.tar.bz2
Remove unnecessary `object` base class in docs (#10366).
Also add a note about inheritance from `object` being default.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index f81e157..4845bca 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -604,7 +604,7 @@ for arbitrary getset descriptors invoking these may trigger
code execution::
# example code for resolving the builtin descriptor types
- class _foo(object):
+ class _foo:
__slots__ = ['foo']
slot_descriptor = type(_foo.foo)