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

Method __repr__

example_code/item_051.py:393–399  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 self.size = size
392
393 def __repr__(self):
394 return (
395 f"{type(self).__module__}"
396 f"{type(self).__name__}("
397 f"distance={self.distance}, "
398 f"size={self.size})"
399 )
400
401
402print("Example 41")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected