Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __init__
Method
__init__
Lib/test/test_threading.py:69–70 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
67
# A trivial mutable counter.
68
class
Counter(object):
69
def
__init__(self):
70
self.value = 0
71
def
inc(self):
72
self.value += 1
73
def
dec(self):
Callers
3
test_basics
Method · 0.95
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected