mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Add :term:s for "new-style class".
This commit is contained in:
parent
e7a0990113
commit
a739503881
11 changed files with 27 additions and 20 deletions
|
@ -495,8 +495,8 @@ figure out the consequences of a name conflict with an attribute of
|
|||
:class:`Base2`. The depth-first rule makes no differences between direct and
|
||||
inherited attributes of :class:`Base1`.)
|
||||
|
||||
For new-style classes, the method resolution order changes dynamically to
|
||||
support cooperative calls to :func:`super`. This approach is known in some
|
||||
For :term:`new-style class`\es, the method resolution order changes dynamically
|
||||
to support cooperative calls to :func:`super`. This approach is known in some
|
||||
other multiple-inheritance languages as call-next-method and is more powerful
|
||||
than the super call found in single-inheritance languages.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue