Lines Matching defs:__format__
1075 def __format__(self, spec):
1081 def __format__(self, spec):
1084 # class with __str__, but no __format__
1091 # class with __repr__, but no __format__ or __str__
1098 # class with __format__ that forwards to string, for some format_spec's
1104 def __format__(self, format_spec):
1107 return object.__format__(self, format_spec)
1110 def __format__(self, format_spec):
1114 def __format__(self, format_spec):
1115 return int.__format__(self * 2, format_spec)
1129 __format__ = None
1241 # test fallback to object.__format__
1258 # test deriving from a builtin type and overriding __format__
1405 def __format__(self, spec):
1451 def __format__(self, spec):