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

Class BadRepr

extra_tests/snippets/stdlib_collections.py:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48# Test that calling an evil __repr__ can't hang deque
49class BadRepr:
50 def __repr__(self):
51 self.d.pop()
52 return ""
53
54
55b = BadRepr()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected