MCPcopy Index your code
hub / github.com/RustPython/RustPython / ReprWrapper

Class ReprWrapper

Lib/test/test_set.py:37–40  ·  view source on GitHub ↗

Used to test self-referential repr() calls

Source from the content-addressed store, hash-verified

35 raise RuntimeError
36
37class ReprWrapper:
38 'Used to test self-referential repr() calls'
39 def __repr__(self):
40 return repr(self.value)
41
42class HashCountingInt(int):
43 'int-like object that counts the number of times __hash__ is called'

Callers 1

test_cyclical_reprMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_cyclical_reprMethod · 0.68