mirror of https://github.com/python/cpython.git
[Bug #1023359] Make code match inheritance diagram
This commit is contained in:
parent
f43e8bd7b4
commit
f08437ca08
|
@ -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…
Reference in New Issue