MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __repr__

Method __repr__

Solutions/6_1/structure.py:17–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 raise AttributeError('No attribute %s' % name)
16
17 def __repr__(self):
18 return '%s(%s)' % (type(self).__name__,
19 ', '.join(repr(getattr(self, name)) for name in self._fields))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected