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

Method __repr__

example_code/item_063.py:115–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 )
114
115 def __repr__(self):
116 name = self.__class__.__name__
117 args_str = ", ".join(str(x) for x in self.args)
118 return f"{name}({args_str})"
119
120
121print("Example 6")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected