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

Method __repr__

12-seq-hacking/vector_v3.py:170–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 return iter(self._components)
169
170 def __repr__(self):
171 components = reprlib.repr(self._components)
172 components = components[components.find('['):-1]
173 return f'Vector({components})'
174
175 def __str__(self):
176 return str(tuple(self))

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected