MCPcopy Index your code
hub / github.com/python/cpython / F

Class F

Lib/test/test_str.py:1123–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121
1122 # class with __repr__, but no __format__ or __str__
1123 class F:
1124 def __init__(self, x):
1125 self.x = x
1126 def __repr__(self):
1127 return 'F(' + self.x + ')'
1128
1129 # class with __format__ that forwards to string, for some format_spec's
1130 class G:

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56