Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ X
Class
X
Lib/test/test_fstring.py:41–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
def
test__format__lookup(self):
40
# Make sure __format__ is looked up on the type, not the instance.
41
class
X:
42
def
__format__(self, spec):
43
return
'class'
44
45
x = X()
46
Callers
3
test__format__lookup
Method · 0.70
test_ast
Method · 0.70
test_side_effect_order
Method · 0.70
Calls
no outgoing calls
Tested by
3
test__format__lookup
Method · 0.56
test_ast
Method · 0.56
test_side_effect_order
Method · 0.56