Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ Foo
Class
Foo
Lib/test/test_scope.py:459–466 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
457
def
testLeaks(self):
458
459
class
Foo:
460
count = 0
461
462
def
__init__(self):
463
Foo.count += 1
464
465
def
__del__(self):
466
Foo.count -= 1
467
468
def
f1():
469
x = Foo()
Callers
1
f1
Method · 0.70
Calls
no outgoing calls
Tested by
1
f1
Method · 0.56