MCPcopy
hub / github.com/fluentpython/example-code-2e / __repr__

Method __repr__

12-seq-hacking/vector_v2.py:127–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return iter(self._components)
126
127 def __repr__(self):
128 components = reprlib.repr(self._components)
129 components = components[components.find('['):-1]
130 return f'Vector({components})'
131
132 def __str__(self):
133 return str(tuple(self))

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected