/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_types.py | 297 def test(i, format_spec, result): 300 assert type(format_spec) == str 301 self.assertEqual(i.__format__(format_spec), result) 302 self.assertEqual(i.__format__(unicode(format_spec)), result) 425 for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] + 427 if not format_spec in 'bcdoxXeEfFgGn%': 428 self.assertRaises(ValueError, 0 .__format__, format_spec) 429 self.assertRaises(ValueError, 1 .__format__, format_spec) 430 self.assertRaises(ValueError, (-1) .__format__, format_spec) 434 for format_spec in 'eEfFgG%' [all...] |
test_str.py | 202 # class with __format__ that forwards to string, for some format_spec's 208 def __format__(self, format_spec): 209 if format_spec == 'd': 211 return object.__format__(self, format_spec) 215 def __format__(self, format_spec): 219 def __format__(self, format_spec): 220 return self.strftime(format_spec) 223 def __format__(self, format_spec): 224 return int.__format__(self * 2, format_spec)
|
test_string.py | 142 def format_field(self, value, format_spec): 143 return format(value(), format_spec) 163 # (literal_text, field_name, format_spec, conversion) 168 field_name, _, format_spec = field[1:].partition(':') 169 yield '', field_name, format_spec, None
|
test_float.py | 590 for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] + 592 if not format_spec in 'eEfFgGn%': 593 self.assertRaises(ValueError, format, 0.0, format_spec) 594 self.assertRaises(ValueError, format, 1.0, format_spec) 595 self.assertRaises(ValueError, format, -1.0, format_spec) 596 self.assertRaises(ValueError, format, 1e100, format_spec) 597 self.assertRaises(ValueError, format, -1e100, format_spec) 598 self.assertRaises(ValueError, format, 1e-100, format_spec) 599 self.assertRaises(ValueError, format, -1e-100, format_spec) [all...] |
test_builtin.py | [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_types.py | 297 def test(i, format_spec, result): 300 assert type(format_spec) == str 301 self.assertEqual(i.__format__(format_spec), result) 302 self.assertEqual(i.__format__(unicode(format_spec)), result) 425 for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] + 427 if not format_spec in 'bcdoxXeEfFgGn%': 428 self.assertRaises(ValueError, 0 .__format__, format_spec) 429 self.assertRaises(ValueError, 1 .__format__, format_spec) 430 self.assertRaises(ValueError, (-1) .__format__, format_spec) 434 for format_spec in 'eEfFgG%' [all...] |
test_str.py | 202 # class with __format__ that forwards to string, for some format_spec's 208 def __format__(self, format_spec): 209 if format_spec == 'd': 211 return object.__format__(self, format_spec) 215 def __format__(self, format_spec): 219 def __format__(self, format_spec): 220 return self.strftime(format_spec) 223 def __format__(self, format_spec): 224 return int.__format__(self * 2, format_spec)
|
test_string.py | 142 def format_field(self, value, format_spec): 143 return format(value(), format_spec) 163 # (literal_text, field_name, format_spec, conversion) 168 field_name, _, format_spec = field[1:].partition(':') 169 yield '', field_name, format_spec, None
|
test_float.py | 590 for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] + 592 if not format_spec in 'eEfFgGn%': 593 self.assertRaises(ValueError, format, 0.0, format_spec) 594 self.assertRaises(ValueError, format, 1.0, format_spec) 595 self.assertRaises(ValueError, format, -1.0, format_spec) 596 self.assertRaises(ValueError, format, 1e100, format_spec) 597 self.assertRaises(ValueError, format, -1e100, format_spec) 598 self.assertRaises(ValueError, format, 1e-100, format_spec) 599 self.assertRaises(ValueError, format, -1e-100, format_spec) [all...] |
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
complexobject.h | 57 /* Format the object based on the format_spec, as defined in PEP 3101 60 char *format_spec,
|
floatobject.h | 124 /* Format the object based on the format_spec, as defined in PEP 3101 127 char *format_spec,
|
intobject.h | 72 /* Format the object based on the format_spec, as defined in PEP 3101 75 char *format_spec,
|
longobject.h | 126 /* Format the object based on the format_spec, as defined in PEP 3101 129 char *format_spec,
|
stringobject.h | 201 /* Format the object based on the format_spec, as defined in PEP 3101 204 char *format_spec,
|
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
complexobject.h | 57 /* Format the object based on the format_spec, as defined in PEP 3101 60 char *format_spec,
|
floatobject.h | 124 /* Format the object based on the format_spec, as defined in PEP 3101 127 char *format_spec,
|
intobject.h | 72 /* Format the object based on the format_spec, as defined in PEP 3101 75 char *format_spec,
|
longobject.h | 126 /* Format the object based on the format_spec, as defined in PEP 3101 129 char *format_spec,
|
stringobject.h | 201 /* Format the object based on the format_spec, as defined in PEP 3101 204 char *format_spec,
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
string.py | 557 for literal_text, field_name, format_spec, conversion in \ 578 format_spec = self._vformat(format_spec, args, kwargs, 582 result.append(self.format_field(obj, format_spec)) 598 def format_field(self, value, format_spec): 599 return format(value, format_spec) 614 # (literal_text, field_name, format_spec, conversion) 619 # with format_spec and conversion and then used
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
string.py | 557 for literal_text, field_name, format_spec, conversion in \ 578 format_spec = self._vformat(format_spec, args, kwargs, 582 result.append(self.format_field(obj, format_spec)) 598 def format_field(self, value, format_spec): 599 return format(value, format_spec) 614 # (literal_text, field_name, format_spec, conversion) 619 # with format_spec and conversion and then used
|
/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
pretty-print.h | 35 const char *format_spec; member in struct:__anon35602 181 TEXT->format_spec points to a format code. FORMAT_DECODER should call 185 should advance the TEXT->format_spec as it goes. When FORMAT_DECODER 186 returns, TEXT->format_spec should point to the last character processed.
|
/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
pretty-print.h | 35 const char *format_spec; member in struct:__anon36331 181 TEXT->format_spec points to a format code. FORMAT_DECODER should call 185 should advance the TEXT->format_spec as it goes. When FORMAT_DECODER 186 returns, TEXT->format_spec should point to the last character processed.
|
/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
pretty-print.h | 35 const char *format_spec; member in struct:__anon37162 181 TEXT->format_spec points to a format code. FORMAT_DECODER should call 185 should advance the TEXT->format_spec as it goes. When FORMAT_DECODER 186 returns, TEXT->format_spec should point to the last character processed.
|
/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
pretty-print.h | 35 const char *format_spec; member in struct:__anon37891 181 TEXT->format_spec points to a format code. FORMAT_DECODER should call 185 should advance the TEXT->format_spec as it goes. When FORMAT_DECODER 186 returns, TEXT->format_spec should point to the last character processed.
|