/external/python/cpython3/Lib/test/ |
D | test_subclassinit.py | 118 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 …]
|
D | test_super.py | 154 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 …]
|
D | test_isinstance.py | 151 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/ |
D | reflection.py | 100 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)
|
D | service_reflection.py | 64 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/ |
D | types.py | 57 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:
|
D | enum.py | 115 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/ |
D | dynamic.py | 52 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/ |
D | Enum.py | 27 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/ |
D | classfix.py | 176 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/ |
D | gen.cc | 72 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/ |
D | classtemplate.cpp | 13 double bases[BaseCount]; member in Test 22 return bases[position]; in get() 26 bases[position] = value; in set()
|
/external/scapy/scapy/ |
D | base_classes.py | 159 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)
|
D | asn1packet.py | 16 def __new__(cls, name, bases, dct): argument 19 return super(ASN1Packet_metaclass, cls).__new__(cls, name, bases, dct)
|
/external/google-breakpad/src/common/dwarf/ |
D | cfi_assembler.cc | 122 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/ |
D | test_isinstance.py | 139 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/ |
D | Enum.py | 20 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/ |
D | typeobject.c | 253 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/ |
D | reconstruction_ops_test.py | 40 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/ |
D | slots_metaclass.py | 23 def __new__(mcs, name, bases, attrs): argument 27 return super(SlotsMetaclass, mcs).__new__(mcs, name, bases, attrs)
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | usb_descriptors.py | 95 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,
|
D | mbim_message.py | 171 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/ |
D | UnwindLevel1-gcc-ext.c | 185 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/ |
D | meta_class.py | 11 def __new__(cls, name, bases, attrs): argument 16 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
|
/external/autotest/scheduler/ |
D | rdb_requests.py | 93 def __new__(cls, name, bases, dctn): argument 94 for base in bases: 101 return type.__new__(cls, name, bases, dctn)
|