Searched refs:AutoNumber (Results 1 – 3 of 3) sorted by relevance
/third_party/python/Objects/stringlib/ |
D | unicode_format.h | 29 } AutoNumber; typedef 35 int recursion_depth, AutoNumber *auto_number); 44 AutoNumber_Init(AutoNumber *auto_number) in AutoNumber_Init() 319 AutoNumber *auto_number) in field_name_split() 395 AutoNumber *auto_number) in get_field_object() 807 int recursion_depth, AutoNumber *auto_number) in output_markup() 867 _PyUnicodeWriter *writer, int recursion_depth, AutoNumber *auto_number) in do_markup() 910 int recursion_depth, AutoNumber *auto_number) in build_string() 950 AutoNumber auto_number; in do_string_format()
|
/third_party/python/Lib/test/ |
D | test_enum.py | 1589 class AutoNumber(Enum): class 1601 list(AutoNumber), 1602 [AutoNumber.first, AutoNumber.second, AutoNumber.third], 1604 self.assertEqual(int(AutoNumber.second), 2) 1605 self.assertEqual(AutoNumber.third.value, 3) 1606 self.assertIs(AutoNumber(1), AutoNumber.first) 1609 class AutoNumber(Enum): class 1617 class Color(AutoNumber): 1625 class AutoNumber(IntEnum): class 1631 class Color(AutoNumber):
|
/third_party/python/Doc/library/ |
D | enum.rst | 873 >>> class AutoNumber(NoValue): 880 >>> class Color(AutoNumber): 890 To make a more general purpose ``AutoNumber``, add ``*args`` to the signature:: 892 >>> class AutoNumber(NoValue): 900 Then when you inherit from ``AutoNumber`` you can write your own ``__init__`` 903 >>> class Swatch(AutoNumber):
|