Home
last modified time | relevance | path

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

12345678910>>...18

/external/python/cpython3/Lib/
Dtypes.py69 def new_class(name, bases=(), kwds=None, exec_body=None): argument
71 resolved_bases = resolve_bases(bases)
75 if resolved_bases is not bases:
76 ns['__orig_bases__'] = bases
79 def resolve_bases(bases): argument
81 new_bases = list(bases)
84 for i, base in enumerate(bases):
89 new_base = base.__mro_entries__(bases)
97 return bases
100 def prepare_class(name, bases=(), kwds=None): argument
[all …]
Denum.py166 def __prepare__(metacls, cls, bases, **kwds): argument
168 metacls._check_for_existing_members(cls, bases)
173 member_type, first_enum = metacls._get_mixins_(cls, bases)
180 def __new__(metacls, cls, bases, classdict, **kwds): argument
191 member_type, first_enum = metacls._get_mixins_(cls, bases)
215 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds)
256 for chain in bases:
496 bases = (cls, ) if type is None else (type, cls)
497 _, first_enum = cls._get_mixins_(cls, bases)
498 classdict = metacls.__prepare__(class_name, bases)
[all …]
Dpyclbr.py196 bases = []
197 for base in node.bases:
201 bases.append(self.tree[name])
207 bases.append(_modules[module].get(class_, name))
209 bases.append(name)
212 class_ = Class(self.module, node.name, bases, self.file, node.lineno,
/external/python/cpython3/Lib/test/
Dtest_subclassinit.py117 def __new__(cls, name, bases, ns): argument
118 ret = super().__new__(cls, name, bases, ns)
181 def __new__(cls, name, bases, ns): argument
182 self = super().__new__(cls, name, bases, ns)
231 def __init__(self, name, bases, namespace, otherarg): argument
232 super().__init__(name, bases, namespace)
239 def __new__(cls, name, bases, namespace, otherarg): argument
240 return super().__new__(cls, name, bases, namespace)
242 def __init__(self, name, bases, namespace, otherarg): argument
243 super().__init__(name, bases, namespace)
[all …]
Dtest_genericclass.py24 def __mro_entries__(self, bases): argument
25 tested.append(bases)
44 def __mro_entries__(self, bases): argument
45 tested.append(bases)
64 def __mro_entries__(self, bases): argument
65 tested.append(bases)
78 def __mro_entries__(self, bases): argument
79 tested.append(bases)
91 def __mro_entries__(self, bases, something, other): argument
119 def __new__(mcls, name, bases, ns): argument
[all …]
Dtest_super.py151 def __new__(cls, name, bases, namespace): argument
153 self = super().__new__(cls, name, bases, namespace)
169 def __new__(cls, name, bases, namespace): argument
204 def __new__(cls, name, bases, namespace): argument
207 return super().__new__(cls, name, bases, namespace)
237 def __new__(cls, name, bases, namespace): argument
239 return super().__new__(cls, name, bases, namespace)
259 def __new__(cls, name, bases, namespace, cell): argument
261 return super().__new__(cls, name, bases, namespace)
273 def __new__(cls, name, bases, namespace): argument
[all …]
Dtest_types.py1198 def __init__(cls, name, bases, ns, **kw): argument
1199 super().__init__(name, bases, ns)
1201 def __new__(mcls, name, bases, ns, **kw): argument
1202 return super().__new__(mcls, name, bases, ns)
1204 def __prepare__(mcls, name, bases, **kw): argument
1205 ns = super().__prepare__(name, bases)
1241 def meta_func(name, bases, ns, **kw): argument
1242 return name, bases, ns, kw
1259 bases=(int,),
1271 def __mro_entries__(self, bases): argument
[all …]
/external/python/enum34/enum/
D__init__.py150 def __prepare__(metacls, cls, bases): argument
153 def __new__(metacls, cls, bases, classdict): argument
164 member_type, first_enum = metacls._get_mixins_(bases)
198 base_attributes = set([a for b in bases for a in b.__dict__])
200 enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict)
443 bases = (cls, )
445 bases = (type, cls)
446 classdict = metacls.__prepare__(class_name, bases)
467 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
484 def _get_mixins_(bases): argument
[all …]
/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)
/external/python/apitools/apitools/base/protorpclite/
Dmessages.py185 def __init__(cls, name, bases, dct): argument
187 type.__init__(cls, name, bases, dct)
299 def __init__(cls, name, bases, dct): argument
301 if not (bases == (object,) or bases == (Enum,)):
309 if bases != (object,):
350 _DefinitionClass.__init__(cls, name, bases, dct)
611 def __new__(cls, name, bases, dct): argument
622 if bases != (object,):
624 if bases != (Message,):
677 return _DefinitionClass.__new__(cls, name, bases, dct)
[all …]
/external/google-breakpad/src/common/dwarf/
Dcfi_assembler.cc128 const EncodedPointerBases &bases) { in EncodedPointer() argument
143 case dwarf2reader::DW_EH_PE_pcrel: base = bases.cfi + Size(); break; in EncodedPointer()
144 case dwarf2reader::DW_EH_PE_textrel: base = bases.text; break; in EncodedPointer()
145 case dwarf2reader::DW_EH_PE_datarel: base = bases.data; break; in EncodedPointer()
/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/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/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/util/data/
Dantarctica18 # Argentina - year-round bases
35 # year-round bases
125 # Chile - year-round bases and towns
134 # China - year-round bases
138 # France - year-round bases (also see "France & Italy")
143 # She confirms that French Southern Territories and Terre Adélie bases
171 # India - year-round bases
178 # Japan - year-round bases
234 # Russia - year-round bases
245 # S Africa - year-round bases
[all …]
/external/webrtc/logging/rtc_event_log/encoder/
Ddelta_encoding_unittest.cc495 const uint64_t bases[] = {0, 0x55, 0xffffffff, in TEST_P() local
497 const size_t kIntendedWrapAroundBaseIndex = arraysize(bases); in TEST_P()
502 uint64_t last_element[arraysize(bases)]; in TEST_P()
503 memcpy(last_element, bases, sizeof(bases)); in TEST_P()
523 if (last_element[j] < bases[j]) { in TEST_P()
537 std::string encodings[arraysize(bases)]; in TEST_P()
539 for (size_t i = 0; i < arraysize(bases); ++i) { in TEST_P()
541 CreateSequenceByDeltas(bases[i], deltas, num_of_values_); in TEST_P()
545 TestEncodingAndDecoding(bases[i], values, &encodings[i]); in TEST_P()
/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py711 def __new__(cls, name, bases, namespace, argument
720 tvars = _type_vars(bases)
722 for base in bases:
741 for b in bases) else "Protocol"
746 initial_bases = bases
748 extra not in bases):
749 bases = (extra,) + bases
750 bases = tuple(_gorg(b) if isinstance(b, GenericMeta) else b
751 for b in bases)
752 if any(isinstance(b, GenericMeta) and b is not typing.Generic for b in bases):
[all …]
/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/python/cpython3/Objects/
Dtypeobject.c356 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified() argument
389 n = PyTuple_GET_SIZE(bases); in type_mro_modified()
391 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified()
418 PyObject *bases; in assign_version_tag() local
434 bases = type->tp_bases; in assign_version_tag()
435 n = PyTuple_GET_SIZE(bases); in assign_version_tag()
437 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag()
684 static int add_all_subclasses(PyTypeObject *type, PyObject *bases);
686 static void remove_all_subclasses(PyTypeObject *type, PyObject *bases);
1901 PyObject *bases; in mro_implementation() local
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dreconstruction_ops_test.py41 self.bases = np.array(range(2, 5))
43 powers = np.power(self.bases[:, np.newaxis], exponents[np.newaxis, :])
130 string_output = [np.base_repr(x, self.bases[0]) for x in output]
141 string_output = [np.base_repr(x, self.bases[i]) for x in output[i, :]]
154 string_output = [np.base_repr(int(x), self.bases[0]) for x in
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dmeta_class.py11 def __new__(cls, name, bases, attrs): argument
17 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
/external/tensorflow/tensorflow/compiler/xla/stream_executor/tpu/
Dc_api_conversions.cc39 pair.second = ApiConverter::FromC(c_buffer->bases[i]); in FromC()
385 absl::InlinedVector<SE_DeviceMemoryBase, 2> bases; in ToC() local
387 bases.push_back(ApiConverter::ToC(pair.second)); in ToC()
389 c_device_buffer->count = bases.size(); in ToC()
390 c_device_buffer->bases = new SE_DeviceMemoryBase[bases.size()]; in ToC()
391 for (int i = 0; i < bases.size(); ++i) { in ToC()
392 c_device_buffer->bases[i] = bases[i]; in ToC()
417 delete[] c_buffer->bases; in Destroy()

12345678910>>...18