Home
last modified time | relevance | path

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

12345678910>>...12

/external/python/cpython3/Lib/test/
Dtest_subclassinit.py118 def __new__(cls, name, bases, ns): argument
119 ret = super().__new__(cls, name, bases, ns)
182 def __new__(cls, name, bases, ns): argument
183 self = super().__new__(cls, name, bases, ns)
232 def __init__(self, name, bases, namespace, otherarg): argument
233 super().__init__(name, bases, namespace)
240 def __new__(cls, name, bases, namespace, otherarg): argument
241 return super().__new__(cls, name, bases, namespace)
243 def __init__(self, name, bases, namespace, otherarg): argument
244 super().__init__(name, bases, namespace)
[all …]
Dtest_super.py154 def __new__(cls, name, bases, namespace): argument
156 self = super().__new__(cls, name, bases, namespace)
172 def __new__(cls, name, bases, namespace): argument
211 def __new__(cls, name, bases, namespace): argument
214 return super().__new__(cls, name, bases, namespace)
244 def __new__(cls, name, bases, namespace): argument
246 return super().__new__(cls, name, bases, namespace)
284 def __new__(cls, name, bases, namespace, cell): argument
286 return super().__new__(cls, name, bases, namespace)
298 def __new__(cls, name, bases, namespace): argument
[all …]
Dtest_isinstance.py151 def __init__(self, bases): argument
152 self.bases = bases
155 return self.bases
170 AbstractSuper = AbstractClass(bases=())
172 AbstractChild = AbstractClass(bases=(AbstractSuper,))
/external/nanopb-c/generator/google/protobuf/
Dreflection.py100 def __new__(cls, name, bases, dictionary): argument
122 bases = _NewMessage(bases, descriptor, dictionary)
125 new_class = superclass.__new__(cls, name, bases, dictionary)
129 def __init__(cls, name, bases, dictionary): argument
149 superclass.__init__(name, bases, dictionary)
Dservice_reflection.py64 def __init__(cls, name, bases, dictionary): argument
94 def __init__(cls, name, bases, dictionary): argument
104 super(GeneratedServiceStubType, cls).__init__(name, bases, dictionary)
/external/python/cpython3/Lib/
Dtypes.py57 def new_class(name, bases=(), kwds=None, exec_body=None): argument
59 meta, ns, kwds = prepare_class(name, bases, kwds)
62 return meta(name, bases, ns, **kwds)
64 def prepare_class(name, bases=(), kwds=None): argument
82 if bases:
83 meta = type(bases[0])
89 meta = _calculate_meta(meta, bases)
91 ns = meta.__prepare__(name, bases, **kwds)
96 def _calculate_meta(meta, bases): argument
99 for base in bases:
Denum.py115 def __prepare__(metacls, cls, bases): argument
119 member_type, first_enum = metacls._get_mixins_(bases)
124 def __new__(metacls, cls, bases, classdict): argument
129 member_type, first_enum = metacls._get_mixins_(bases)
153 enum_class = super().__new__(metacls, cls, bases, classdict)
377 bases = (cls, ) if type is None else (type, cls)
378 _, first_enum = cls._get_mixins_(bases)
379 classdict = metacls.__prepare__(class_name, bases)
399 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
418 def _get_mixins_(bases): argument
[all …]
/external/trappy/trappy/
Ddynamic.py52 def __new__(mcs, name, bases, dct): argument
54 return type.__new__(mcs, name, bases, dct)
56 def __init__(cls, name, bases, dct): argument
58 super(DynamicTypeFactory, cls).__init__(name, bases, dct)
/external/python/cpython2/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
/external/python/cpython2/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)
/external/clang/utils/VtableTest/
Dgen.cc72 static int bases[N_BASES]; in gs() local
128 bases[n_bases] = base; in gs()
188 int base = bases[i]; in gs()
275 g(" calc_s"); g(bases[i]); gl("(t);"); in gs()
281 g(" if ((char *)dynamic_cast<s"); g(bases[i]); gl("*>(this))"); in gs()
282 g(" mix(\"base dyn cast\", t - (char *)dynamic_cast<s"); g(bases[i]); gl("*>(this));"); in gs()
314 g("s"); g(bases[i]); g("((char *)this)"); in gs()
/external/clang/test/CoverageMapping/
Dclasstemplate.cpp13 double bases[BaseCount]; member in Test
22 return bases[position]; in get()
26 bases[position] = value; in set()
/external/scapy/scapy/
Dbase_classes.py159 def __new__(cls, name, bases, dct): argument
171 for b in bases:
194 newcls = super(Packet_metaclass, cls).__new__(cls, name, bases, dct)
235 def __new__(cls, name, bases, dct): argument
238 newcls = super(Field_metaclass, cls).__new__(cls, name, bases, dct)
248 def __new__(cls, name, bases, dct): argument
261 return super(NewDefaultValues, cls).__new__(cls, name, bases, dct)
Dasn1packet.py16 def __new__(cls, name, bases, dct): argument
19 return super(ASN1Packet_metaclass, cls).__new__(cls, name, bases, dct)
/external/google-breakpad/src/common/dwarf/
Dcfi_assembler.cc122 const EncodedPointerBases &bases) { in EncodedPointer() argument
137 case dwarf2reader::DW_EH_PE_pcrel: base = bases.cfi + Size(); break; in EncodedPointer()
138 case dwarf2reader::DW_EH_PE_textrel: base = bases.text; break; in EncodedPointer()
139 case dwarf2reader::DW_EH_PE_datarel: base = bases.data; break; in EncodedPointer()
/external/python/cpython2/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,))
/external/python/cpython2/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)
/external/python/cpython3/Objects/
Dtypeobject.c253 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified() argument
272 n = PyTuple_GET_SIZE(bases); in type_mro_modified()
274 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified()
301 PyObject *bases; in assign_version_tag() local
327 bases = type->tp_bases; in assign_version_tag()
328 n = PyTuple_GET_SIZE(bases); in assign_version_tag()
330 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag()
558 static int add_all_subclasses(PyTypeObject *type, PyObject *bases);
560 static void remove_all_subclasses(PyTypeObject *type, PyObject *bases);
1721 PyObject *bases; in mro_implementation() local
[all …]
/external/tensorflow/tensorflow/contrib/signal/python/kernel_tests/
Dreconstruction_ops_test.py40 self.bases = np.array(range(2, 5))
42 powers = np.power(self.bases[:, np.newaxis], exponents[np.newaxis, :])
103 string_output = [np.base_repr(x, self.bases[0]) for x in output]
116 string_output = [np.base_repr(x, self.bases[i]) for x in output[i, :]]
130 string_output = [np.base_repr(int(x), self.bases[0]) for x in
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dslots_metaclass.py23 def __new__(mcs, name, bases, attrs): argument
27 return super(SlotsMetaclass, mcs).__new__(mcs, name, bases, attrs)
/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors.py95 def __new__(mcs, name, bases, attrs): argument
99 if object in bases:
100 return super(DescriptorMeta, mcs).__new__(mcs, name, bases, attrs)
162 (descriptor_class,) + bases,
Dmbim_message.py171 def __new__(mcs, name, bases, attrs): argument
175 if object in bases:
177 mcs, name, bases, attrs)
183 for base_class in bases:
207 mcs, name, (message_class,) + bases, attrs)
/external/libunwind_llvm/src/
DUnwindLevel1-gcc-ext.c185 struct dwarf_eh_bases *bases) { in _Unwind_Find_FDE() argument
195 bases->tbase = (uintptr_t)info.extra; in _Unwind_Find_FDE()
196 bases->dbase = 0; // dbase not used on Mac OS X in _Unwind_Find_FDE()
197 bases->func = (uintptr_t)info.start_ip; in _Unwind_Find_FDE()
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dmeta_class.py11 def __new__(cls, name, bases, attrs): argument
16 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
/external/autotest/scheduler/
Drdb_requests.py93 def __new__(cls, name, bases, dctn): argument
94 for base in bases:
101 return type.__new__(cls, name, bases, dctn)

12345678910>>...12