Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ spam
Method
spam
src/8/calling_a_method_on_a_parent_class/example1.py:6–8 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4
5
class
B(A):
6
def
spam(self):
7
print(
'B.spam'
)
8
super().spam()
# Call parent spam()
9
10
if
__name__ ==
'__main__'
:
11
b = B()
Callers
nothing calls this directly
Calls
1
spam
Method · 0.45
Tested by
no test coverage detected