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

Class N

Lib/test/test_str.py:1155–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153 __str__ = None
1154
1155 class N:
1156 def __init__(self, x):
1157 self.x = x
1158 def __repr__(self):
1159 return 'N(' + self.x + ')'
1160 __format__ = None
1161
1162 self.assertEqual(''.format(), '')
1163 self.assertEqual('abc'.format(), 'abc')

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56