Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ spam
Method
spam
Lib/test/test_descr.py:525–526 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
523
return
it
524
class
C(metaclass=M2):
525
def
spam(self):
526
return
42
527
self.assertEqual(C.name,
'C'
)
528
self.assertEqual(C.bases, ())
529
self.assertIn(
'spam'
, C.dict)
Callers
3
test_metaclass
Method · 0.95
test_new_type
Method · 0.95
test_diamond_inheritance
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected