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

Method __format__

Lib/test/test_str.py:1141–1142  ·  view source on GitHub ↗
(self, format_spec)

Source from the content-addressed store, hash-verified

1139
1140 class I(datetime.date):
1141 def __format__(self, format_spec):
1142 return self.strftime(format_spec)
1143
1144 class J(int):
1145 def __format__(self, format_spec):

Callers

nothing calls this directly

Calls 1

strftimeMethod · 0.45

Tested by

no test coverage detected