Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ repr
Method
repr
Lib/reprlib.py:70–71 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
68
self.indent = indent
69
70
def
repr(self, x):
71
return
self.repr1(x, self.maxlevel)
72
73
def
repr1(self, x, level):
74
cls = type(x)
Callers
7
test_tuple
Method · 0.95
test_valid_indent
Method · 0.95
test_invalid_indent
Method · 0.95
repr_str
Method · 0.45
repr_int
Method · 0.45
repr_instance
Method · 0.45
format_stack_entry
Method · 0.45
Calls
1
repr1
Method · 0.95
Tested by
3
test_tuple
Method · 0.76
test_valid_indent
Method · 0.76
test_invalid_indent
Method · 0.76