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/example3.py:20–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
18
def
__init__(self, x):
19
self.x = x
20
def
spam(self):
21
print(
'A.spam'
)
22
23
a = A(42)
24
p = Proxy(a)
Callers
1
example3.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected