Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ X
Class
X
Lib/test/test_genericalias.py:289–292 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
287
# gh-143823
288
lst = []
289
class
X:
290
def
__repr__(self):
291
lst.clear()
292
return
"x"
293
294
lst += [X(), 1]
295
ga = GenericAlias(int, lst)
Callers
1
test_evil_repr3
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_evil_repr3
Method · 0.56