Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __repr__
Method
__repr__
Lib/test/test_descr.py:5800–5801 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5798
for
k, v in state.items():
5799
setattr(self, k, v)
5800
def
__repr__(self):
5801
return
"%s()<%r>"
% (type(self).__name__, self.__getstate__())
5802
5803
class
D(C):
5804
"A subclass of a class with slots."
Callers
2
test_dicts
Method · 0.45
test_str_of_str_subclass
Method · 0.45
Calls
1
__getstate__
Method · 0.95
Tested by
no test coverage detected