MCPcopy Index your code
hub / github.com/python/cpython / repr

Method repr

Lib/test/test_enum.py:1805–1806  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1803 return 'hello, %s' % self
1804 class MyInt(int):
1805 def repr(self):
1806 return hex(self)
1807 with self.assertRaisesRegex(TypeError, 'too many data types'):
1808 class Huh(MyStr, MyInt, Enum):
1809 One = 1

Callers 7

_future_repr_infoFunction · 0.45
_format_args_and_kwargsFunction · 0.45
test_custom_reprMethod · 0.45
load_dictMethod · 0.45
GetTextMethod · 0.45
dict_itemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected