Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __repr__
Method
__repr__
Lib/test/mapping_tests.py:626–627 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
624
625
class
BadRepr(object):
626
def
__repr__(self):
627
raise
Exc()
628
629
d = self._full_mapping({1: BadRepr()})
630
self.assertRaises(Exc, repr, d)
Callers
nothing calls this directly
Calls
1
Exc
Class · 0.70
Tested by
no test coverage detected