MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_072.py:80–82  ·  view source on GitHub ↗
(self, height, width)

Source from the content-addressed store, hash-verified

78
79class LockingGrid(Grid):
80 def __init__(self, height, width):
81 super().__init__(height, width)
82 self.lock = Lock()
83
84 def __str__(self):
85 with self.lock:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected