mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- note that super() only applies to new-style classes;
closes SF bug #764003 - fix markup for consistency
This commit is contained in:
parent
901a41e757
commit
3ede7848a9
1 changed files with 4 additions and 2 deletions
|
@ -935,8 +935,10 @@ class C:
|
|||
\begin{funcdesc}{super}{type\optional{object-or-type}}
|
||||
Return the superclass of \var{type}. If the second argument is omitted
|
||||
the super object returned is unbound. If the second argument is an
|
||||
object, isinstance(obj, type) must be true. If the second argument is a
|
||||
type, issubclass(type2, type) must be true.
|
||||
object, \code{isinstance(\var{obj}, \var{type})} must be true. If
|
||||
the second argument is a type, \code{issubclass(\var{type2},
|
||||
\var{type})} must be true.
|
||||
\function{super()} only works for new-style classes.
|
||||
|
||||
A typical use for calling a cooperative superclass method is:
|
||||
\begin{verbatim}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue