Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ A
Class
A
Lib/test/test_capi/test_opt.py:1531–1536 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1529
# Minimized from mdp.py benchmark
1530
1531
class
A:
1532
def
__init__(self):
1533
self.attr = {}
1534
1535
def
method(self, arg):
1536
self.attr[arg] = None
1537
1538
def
fn(a):
1539
for
_ in range(100):
Callers
2
test_type_version_doesnt_segfault
Method · 0.70
testfunc
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_type_version_doesnt_segfault
Method · 0.56
testfunc
Method · 0.56