Home
last modified time | relevance | path

Searched refs:bases (Results 1 – 25 of 55) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/metaclasses/
DEnum.py27 def __init__(self, name, bases, dict): argument
38 for base in bases:
41 bases = filter(lambda x: x is not Enum, bases)
43 self.__bases__ = bases
DSimple.py4 def __init__(self, name, bases, namespace): argument
7 self.__bases__ = bases
DMeta.py52 def __init__(self, name, bases, dict): argument
61 self.__bases__ = bases
DTrace.py22 def __init__(self, name, bases, dict): argument
24 self.__bases__ = bases
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dclassfix.py176 bases = basepart.split(',')
179 for i in range(len(bases)):
180 if baseprog.match(bases[i]) >= 0:
182 bases[i] = bases[i][x1:y1]
185 basepart = ', '.join(bases)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/newmetaclasses/
DEnum.py20 def __init__(cls, name, bases, dict): argument
21 super(EnumMetaclass, cls).__init__(name, bases, dict)
52 def __init__(cls, name, bases, dict): argument
53 super(FullEnumMetaclass, cls).__init__(name, bases, dict)
DEiffel.py7 def __new__(meta, name, bases, dict): argument
9 return super(EiffelBaseMetaClass, meta).__new__(meta, name, bases,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_isinstance.py139 def __init__(self, bases): argument
140 self.bases = bases
143 return self.bases
158 AbstractSuper = AbstractClass(bases=())
160 AbstractChild = AbstractClass(bases=(AbstractSuper,))
Dtest_long_future.py145 bases = (0, DBL_MANT_DIG, DBL_MIN_EXP,
147 for base in bases:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dabc.py86 def __new__(mcls, name, bases, namespace): argument
87 cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
92 for base in bases:
Dpydoc.py569 c, bases = entry
572 if bases and bases != (parent,):
574 for base in bases:
712 bases = object.__bases__
837 if bases:
839 for base in bases:
1008 c, bases = entry
1010 if bases and bases != (parent,):
1011 parents = map(lambda c, m=modname: classname(c, m), bases)
1123 bases = object.__bases__
[all …]
Dstring.py112 def __init__(cls, name, bases, dct): argument
113 super(_TemplateMetaclass, cls).__init__(name, bases, dct)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dabc.py86 def __new__(mcls, name, bases, namespace): argument
87 cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
92 for base in bases:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Derrors.c564 PyObject *bases = NULL; in PyErr_NewException() local
588 bases = base; in PyErr_NewException()
590 Py_INCREF(bases); in PyErr_NewException()
592 bases = PyTuple_Pack(1, base); in PyErr_NewException()
593 if (bases == NULL) in PyErr_NewException()
598 dot+1, bases, dict); in PyErr_NewException()
600 Py_XDECREF(bases); in PyErr_NewException()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Derrors.c586 PyObject *bases = NULL; in PyErr_NewException() local
610 bases = base; in PyErr_NewException()
612 Py_INCREF(bases); in PyErr_NewException()
614 bases = PyTuple_Pack(1, base); in PyErr_NewException()
615 if (bases == NULL) in PyErr_NewException()
620 dot+1, bases, dict); in PyErr_NewException()
622 Py_XDECREF(bases); in PyErr_NewException()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dtypeobject.c96 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified() argument
117 n = PyTuple_GET_SIZE(bases); in type_mro_modified()
119 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified()
150 PyObject *bases; in assign_version_tag() local
177 bases = type->tp_bases; in assign_version_tag()
178 n = PyTuple_GET_SIZE(bases); in assign_version_tag()
180 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag()
1310 PyObject *bases, *base; in fill_classic_mro() local
1322 bases = ((PyClassObject *)cls)->cl_bases; in fill_classic_mro()
1323 assert(bases && PyTuple_Check(bases)); in fill_classic_mro()
[all …]
Dabstract.c2795 PyObject *bases; local
2802 bases = PyObject_GetAttr(cls, __bases__);
2803 if (bases == NULL) {
2808 if (!PyTuple_Check(bases)) {
2809 Py_DECREF(bases);
2812 return bases;
2819 PyObject *bases = NULL; local
2826 bases = abstract_get_bases(derived);
2827 if (bases == NULL) {
2832 n = PyTuple_GET_SIZE(bases);
[all …]
Dclassobject.c29 PyClass_New(PyObject *bases, PyObject *dict, PyObject *name) in PyClass_New() argument
73 if (bases == NULL) { in PyClass_New()
74 bases = PyTuple_New(0); in PyClass_New()
75 if (bases == NULL) in PyClass_New()
81 if (!PyTuple_Check(bases)) { in PyClass_New()
86 n = PyTuple_Size(bases); in PyClass_New()
88 base = PyTuple_GET_ITEM(bases, i); in PyClass_New()
94 name, bases, dict, NULL); in PyClass_New()
100 Py_INCREF(bases); in PyClass_New()
118 Py_DECREF(bases); in PyClass_New()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dtypeobject.c96 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified() argument
117 n = PyTuple_GET_SIZE(bases); in type_mro_modified()
119 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified()
150 PyObject *bases; in assign_version_tag() local
177 bases = type->tp_bases; in assign_version_tag()
178 n = PyTuple_GET_SIZE(bases); in assign_version_tag()
180 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag()
1292 PyObject *bases, *base; in fill_classic_mro() local
1304 bases = ((PyClassObject *)cls)->cl_bases; in fill_classic_mro()
1305 assert(bases && PyTuple_Check(bases)); in fill_classic_mro()
[all …]
Dabstract.c2799 PyObject *bases; local
2806 bases = PyObject_GetAttr(cls, __bases__);
2807 if (bases == NULL) {
2812 if (!PyTuple_Check(bases)) {
2813 Py_DECREF(bases);
2816 return bases;
2823 PyObject *bases = NULL; local
2830 bases = abstract_get_bases(derived);
2831 if (bases == NULL) {
2836 n = PyTuple_GET_SIZE(bases);
[all …]
Dclassobject.c29 PyClass_New(PyObject *bases, PyObject *dict, PyObject *name) in PyClass_New() argument
73 if (bases == NULL) { in PyClass_New()
74 bases = PyTuple_New(0); in PyClass_New()
75 if (bases == NULL) in PyClass_New()
81 if (!PyTuple_Check(bases)) { in PyClass_New()
86 n = PyTuple_Size(bases); in PyClass_New()
88 base = PyTuple_GET_ITEM(bases, i); in PyClass_New()
94 name, bases, dict, NULL); in PyClass_New()
100 Py_INCREF(bases); in PyClass_New()
118 Py_DECREF(bases); in PyClass_New()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/
Dexample.py3 from framer.bases import Module, Type
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/
DResetSystemLib.inf4 # Reset System Library implementation that bases on QNC.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/
Dpydoc.py620 c, bases = entry
623 if bases and bases != (parent,):
625 for base in bases:
763 bases = object.__bases__
900 if bases:
902 for base in bases:
1071 c, bases = entry
1073 if bases and bases != (parent,):
1074 parents = map(lambda c, m=modname: classname(c, m), bases)
1186 bases = object.__bases__
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
Dpydoc.py569 c, bases = entry
572 if bases and bases != (parent,):
574 for base in bases:
712 bases = object.__bases__
837 if bases:
839 for base in bases:
1008 c, bases = entry
1010 if bases and bases != (parent,):
1011 parents = map(lambda c, m=modname: classname(c, m), bases)
1123 bases = object.__bases__
[all …]

123