Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
49
class
BadRepr:
50
def
__repr__(self):
51
self.d.pop()
52
return
""
53
54
55
b = BadRepr()
Callers
1
stdlib_collections.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected