Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ round_trip_repr
Function
round_trip_repr
extra_tests/snippets/builtin_exceptions.py:11–12 ·
view source on GitHub ↗
(e)
Source
from the content-addressed store, hash-verified
9
10
11
def
round_trip_repr(e):
12
return
exceptions_eq(e, eval(repr(e)))
13
14
15
# KeyError
Callers
1
builtin_exceptions.py
File · 0.85
Calls
3
exceptions_eq
Function · 0.85
repr
Function · 0.85
eval
Function · 0.50
Tested by
no test coverage detected