mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove unnecessary object
base class in docs (#10366).
Also add a note about inheritance from `object` being default.
This commit is contained in:
parent
d4bbab278f
commit
28053fb174
13 changed files with 26 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue