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

Method __str__

example_code/item_074.py:68–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.rows[y % self.height][x % self.width] = state
67
68 def __str__(self):
69 output = ""
70 for row in self.rows:
71 for cell in row:
72 output += cell
73 output += "\n"
74 return output
75
76
77from threading import Lock

Callers 1

__str__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected