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

Class E

Lib/test/test_str.py:1116–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114
1115 # class with __str__, but no __format__
1116 class E:
1117 def __init__(self, x):
1118 self.x = x
1119 def __str__(self):
1120 return 'E(' + self.x + ')'
1121
1122 # class with __repr__, but no __format__ or __str__
1123 class F:

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56