Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_073.py:299–301 ·
view source on GitHub ↗
(self, height, width)
Source
from the content-addressed store, hash-verified
297
298
class
LockingGrid(Grid):
299
def
__init__(self, height, width):
300
super().__init__(height, width)
301
self.lock = Lock()
302
303
def
__str__(self):
304
with
self.lock:
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected