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

Method __repr__

12-seq-hacking/vector_v5.py:209–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 return iter(self._components)
208
209 def __repr__(self):
210 components = reprlib.repr(self._components)
211 components = components[components.find('['):-1]
212 return f'Vector({components})'
213
214 def __str__(self):
215 return str(tuple(self))

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected