Home | History | Annotate | Download | only in test

Lines Matching defs:__format__

955             def __format__(self, spec):
961 def __format__(self, spec):
964 # class with __str__, but no __format__
971 # class with __repr__, but no __format__ or __str__
978 # class with __format__ that forwards to string, for some format_spec's
984 def __format__(self, format_spec):
987 return object.__format__(self, format_spec)
990 def __format__(self, format_spec):
994 def __format__(self, format_spec):
995 return int.__format__(self * 2, format_spec)
1009 __format__ = None
1115 # test fallback to object.__format__
1132 # test deriving from a builtin type and overriding __format__
1262 def __format__(self, spec):
1301 def __format__(self, spec):