Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __repr__
Method
__repr__
Lib/test/test_descr.py:2773–2774 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2771
2772
class
hexint(int):
2773
def
__repr__(self):
2774
return
hex(self)
2775
def
__add__(self, other):
2776
return
hexint(int.__add__(self, other))
2777
# (Note that overriding __radd__ doesn't work,
Callers
nothing calls this directly
Calls
1
hex
Function · 0.85
Tested by
no test coverage detected