Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ X
Class
X
Lib/test/test_builtin.py:782–784 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
780
self.assertRaises(SyntaxError, eval, bom[:2] + b
'a'
)
781
782
class
X:
783
def
__getitem__(self, key):
784
raise
ValueError
785
self.assertRaises(ValueError, eval,
"foo"
, {}, X())
786
787
def
test_eval_frozendict(self):
Callers
4
test_eval
Method · 0.70
test_hash
Method · 0.70
__getattribute__
Method · 0.70
test_input_gh130163
Method · 0.70
Calls
no outgoing calls
Tested by
4
test_eval
Method · 0.56
test_hash
Method · 0.56
__getattribute__
Method · 0.56
test_input_gh130163
Method · 0.56