Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ B
Class
B
src/8/calling_a_method_on_a_parent_class/example1.py:5–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
print(
'A.spam'
)
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
1
example1.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected