Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ foo
Method
foo
Lib/test/test_descr.py:343–343 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
341
# Test subclassing
342
class
C(spam.spamlist):
343
def
foo(self):
return
1
344
a = C()
345
self.assertEqual(a, [])
346
self.assertEqual(a.foo(), 1)
Callers
6
test_spam_lists
Method · 0.95
test_spam_dicts
Method · 0.95
test_classmethods
Method · 0.95
test_staticmethods
Method · 0.95
test_classic
Method · 0.95
test_methods
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected