mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
[Bug #1023359] Make code match inheritance diagram
This commit is contained in:
parent
f43e8bd7b4
commit
f08437ca08
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ will be used in methods to call a method in the superclass; for
|
|||
example, \class{D}'s \method{save()} method would look like this:
|
||||
|
||||
\begin{verbatim}
|
||||
class D:
|
||||
class D (B,C):
|
||||
def save (self):
|
||||
# Call superclass .save()
|
||||
super(D, self).save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue