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

Method __repr__

12-seq-hacking/vector_v4.py:166–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected