Home
last modified time | relevance | path

Searched refs:enumvalues (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Demo/newmetaclasses/
DEnum.py40 enumvalues = ["%s: %d" % (val, getattr(cls, val))
42 if enumvalues:
43 s2 = ": {%s}" % ", ".join(enumvalues)
/external/python/cffi/cffi/
Dmodel.py491 def __init__(self, name, enumerators, enumvalues, baseinttype=None): argument
494 self.enumvalues = enumvalues
513 self.enumerators, self.enumvalues,
520 if self.enumvalues:
521 smallest_value = min(self.enumvalues)
522 largest_value = max(self.enumvalues)
Dvengine_gen.py520 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
528 enumvalues = [self._load_constant(True, tp, enumerator, module)
530 tp.enumvalues = tuple(enumvalues)
537 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
Dvengine_cpy.py706 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
719 enumvalues = [getattr(module, enumerator)
721 tp.enumvalues = tuple(enumvalues)
725 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
Dcparser.py870 enumvalues = []
879 enumvalues.append(nextenumvalue)
883 enumvalues = tuple(enumvalues)
884 tp = model.EnumType(explicit_name, enumerators, enumvalues)
Dbackend_ctypes.py949 def new_enum_type(self, name, enumerators, enumvalues, CTypesInt): argument
951 reverse_mapping = dict(zip(reversed(enumvalues),
Dapi.py890 library.__dict__[name] = tp.enumvalues[i]
Drecompiler.py1105 for enumerator, enumvalue in zip(tp.enumerators, tp.enumvalues):
/external/python/cffi/c/
Drealize_c_type.c482 PyObject *enumerators = NULL, *enumvalues = NULL, *tmp; in realize_c_type_or_func() local
500 enumvalues = PyTuple_New(n); in realize_c_type_or_func()
501 if (enumvalues == NULL) { in realize_c_type_or_func()
524 PyTuple_SET_ITEM(enumvalues, i, tmp); in realize_c_type_or_func()
534 enumvalues, basetd); in realize_c_type_or_func()
537 Py_DECREF(enumvalues); in realize_c_type_or_func()
D_cffi_backend.c6083 PyObject *enumerators, *enumvalues; local
6092 &PyTuple_Type, &enumvalues,
6097 if (n != PyTuple_GET_SIZE(enumvalues)) {
6118 PyObject *value = PyTuple_GET_ITEM(enumvalues, i);
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc1136 namespace enumvalues { namespace
1204 return descriptor::NewMappingByName(&enumvalues::ContainerDef, descriptor); in NewMessageEnumValuesByName()
1321 namespace enumvalues { namespace
1375 return descriptor::NewMappingByName(&enumvalues::ContainerDef, descriptor); in NewEnumValuesByName()
1379 return descriptor::NewMappingByNumber(&enumvalues::ContainerDef, descriptor); in NewEnumValuesByNumber()
1383 return descriptor::NewSequence(&enumvalues::ContainerDef, descriptor); in NewEnumValuesSeq()