Home
last modified time | relevance | path

Searched refs:__new__ (Results 1 – 25 of 222) sorted by relevance

123456789

/external/python/cpython3/Lib/
Denum.py124 def __new__(metacls, cls, bases, classdict): member in EnumMeta
130 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
153 enum_class = super().__new__(metacls, cls, bases, classdict)
195 enum_member = __new__(enum_class)
199 enum_member = __new__(enum_class, *args)
247 enum_class.__new_member__ = __new__
248 enum_class.__new__ = Enum.__new__
291 return cls.__new__(cls, value)
399 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
474 __new__ = classdict.get('__new__', None)
[all …]
Dtyping.py128 def __new__(cls, name, bases, namespace, *, _root=False): member in TypingMeta
132 return super().__new__(cls, name, bases, namespace)
163 def __new__(cls, *args, **kwds): member in _TypingBase
174 return super().__new__(cls)
201 def __new__(cls, *args, _root=False, **kwds): member in _FinalTypingBase
202 self = super().__new__(cls, *args, **kwds)
702 def __new__(cls, parameters=None, origin=None, *args, _root=False): member in _Union
703 self = super().__new__(cls, parameters, origin, *args, _root=_root)
915 def __new__(cls, name, bases, namespace, member in GenericMeta
970 self = super().__new__(cls, name, bases, namespace, _root=True)
[all …]
Dcopyreg.py43 obj = object.__new__(cls)
45 obj = base.__new__(cls, state)
88 return cls.__new__(cls, *args)
94 return cls.__new__(cls, *args, **kwargs)
/external/python/cpython3/Lib/test/
Dtest_super.py154 def __new__(cls, name, bases, namespace): member in TestSuper.test___class___new.Meta
156 self = super().__new__(cls, name, bases, namespace)
172 def __new__(cls, name, bases, namespace): member in TestSuper.test___class___delayed.Meta
211 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___expected_behaviour.Meta
214 return super().__new__(cls, name, bases, namespace)
244 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___missing.Meta
246 return super().__new__(cls, name, bases, namespace)
284 def __new__(cls, name, bases, namespace, cell): member in TestSuper.test___classcell___overwrite.Meta
286 return super().__new__(cls, name, bases, namespace)
298 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___wrong_cell.Meta
[all …]
Dtest_subclassinit.py118 def __new__(cls, name, bases, ns): member in Test.test_set_name_metaclass.Meta
119 ret = super().__new__(cls, name, bases, ns)
182 def __new__(cls, name, bases, ns): member in Test.test_set_name_init_subclass.Meta
183 self = super().__new__(cls, name, bases, ns)
240 def __new__(cls, name, bases, namespace, otherarg): member in Test.test_errors.MyMeta
241 return super().__new__(cls, name, bases, namespace)
255 def __new__(cls, name, bases, namespace): member in Test.test_errors_changed_pep487.MyMeta
256 return super().__new__(cls, name=name, bases=bases,
264 def __new__(cls, name, bases, namespace, otherarg): member in Test.test_errors_changed_pep487.MyMeta
265 self = super().__new__(cls, name, bases, namespace)
Dtest_descr.py263 def __new__(cls, *args, **kwds): member in OperatorsTest.test_complexes.Number
264 result = complex.__new__(cls, *args)
484 def __new__(cls, name, bases, dict): member in ClassPropertiesAndMethods.test_metaclass.M1
486 return type.__new__(cls, name, bases, dict)
497 def __new__(cls, name, bases, dict): member in ClassPropertiesAndMethods.test_metaclass.M2
498 self = object.__new__(cls)
525 def __new__(metaclass, name, bases, dict): member in ClassPropertiesAndMethods.test_metaclass.autosuper
526 cls = super(autosuper, metaclass).__new__(metaclass,
558 def __new__(metaclass, name, bases, dict): member in ClassPropertiesAndMethods.test_metaclass.autoproperty
573 return super(autoproperty, metaclass).__new__(metaclass,
[all …]
Dann_module.py43 def __new__(meta, name, bases, namespace): member in Meta
44 return super().__new__(meta, name, bases, namespace)
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py204 program = object.__new__(unittest.TestProgram)
222 program = object.__new__(unittest.TestProgram)
232 program = object.__new__(unittest.TestProgram)
245 program = object.__new__(unittest.TestProgram)
259 program = object.__new__(unittest.TestProgram)
265 program = object.__new__(unittest.TestProgram)
271 program = object.__new__(unittest.TestProgram)
277 program = object.__new__(unittest.TestProgram)
283 program = object.__new__(unittest.TestProgram)
289 program = object.__new__(unittest.TestProgram)
[all …]
/external/scapy/scapy/
Dbase_classes.py159 def __new__(cls, name, bases, dct): member in Packet_metaclass
194 newcls = super(Packet_metaclass, cls).__new__(cls, name, bases, dct)
230 i = cls.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__)
235 def __new__(cls, name, bases, dct): member in Field_metaclass
238 newcls = super(Field_metaclass, cls).__new__(cls, name, bases, dct)
248 def __new__(cls, name, bases, dct): member in NewDefaultValues
261 return super(NewDefaultValues, cls).__new__(cls, name, bases, dct)
Dasn1packet.py16 def __new__(cls, name, bases, dct): member in ASN1Packet_metaclass
19 return super(ASN1Packet_metaclass, cls).__new__(cls, name, bases, dct)
/external/toolchain-utils/cros_utils/
Dfile_utils.py21 def __new__(cls, *args, **kwargs): member in FileUtils
24 cls._instance = super(FileUtils, cls).__new__(MockFileUtils, *args,
27 cls._instance = super(FileUtils, cls).__new__(cls, *args, **kwargs)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dslots_metaclass.py23 def __new__(mcs, name, bases, attrs): member in SlotsMetaclass
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): member in DescriptorMeta
100 return super(DescriptorMeta, mcs).__new__(mcs, name, bases, attrs)
127 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format,
161 cls = super(DescriptorMeta, mcs).__new__(mcs, name,
Dmbim_message.py91 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format,
123 obj = super(cls, cls).__new__(cls, *field_values)
171 def __new__(mcs, name, bases, attrs): member in MBIMControlMessageMeta
176 return super(MBIMControlMessageMeta, mcs).__new__(
206 cls = super(MBIMControlMessageMeta, mcs).__new__(
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dmeta_class.py11 def __new__(cls, name, bases, attrs): member in TracedMetaClass
16 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column.py342 def __new__(cls, member in _SparseColumn
385 return super(_SparseColumn, cls).__new__(
558 def __new__(cls, member in _SparseColumnHashed
574 obj = super(_SparseColumnHashed, cls).__new__(
781 def __new__(cls, sparse_id_column, weight_column_name, dtype): member in _WeightedSparseColumn
782 return super(_WeightedSparseColumn, cls).__new__(cls, sparse_id_column,
1078 def __new__(cls, member in _EmbeddingColumn
1104 return super(_EmbeddingColumn, cls).__new__(cls, sparse_id_column,
1488 def __new__(cls, member in _ScatteredEmbeddingColumn
1504 return super(_ScatteredEmbeddingColumn, cls).__new__(cls, column_name, size,
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dexport_strategy.py59 def __new__(cls, name, export_fn, strip_default_attrs=None): member in ExportStrategy
60 return super(ExportStrategy, cls).__new__(
/external/python/cpython2/Lib/
Dcopy_reg.py48 obj = object.__new__(cls)
50 obj = base.__new__(cls, state)
93 return cls.__new__(cls, *args)
/external/tensorflow/tensorflow/python/estimator/
Dwarm_starting_util.py68 def __new__(cls, member in VocabInfo
75 return super(VocabInfo, cls).__new__(
227 def __new__(cls, member in WarmStartSettings
235 return super(WarmStartSettings, cls).__new__(
/external/python/cpython3/Lib/http/
D__init__.py19 def __new__(cls, value, phrase, description=''): member in HTTPStatus
20 obj = int.__new__(cls, value)
/external/python/cpython3/Lib/ctypes/test/
Dtest_init.py9 def __new__(cls): member in X
10 result = super().__new__(cls)
/external/python/cpython2/Lib/ctypes/test/
Dtest_init.py9 def __new__(cls): member in X
10 result = super(X, cls).__new__(cls)
/external/scapy/scapy/layers/tls/crypto/
Dhash.py22 def __new__(cls, hash_name, bases, dct): member in _GenericHashMetaclass
25 the_class = super(_GenericHashMetaclass, cls).__new__(cls, hash_name,
/external/trappy/trappy/
Ddynamic.py52 def __new__(mcs, name, bases, dct): member in DynamicTypeFactory
54 return type.__new__(mcs, name, bases, dct)
/external/tensorflow/tensorflow/python/training/
Dsession_run_hook.py215 def __new__(cls, fetches, feed_dict=None, options=None): member in SessionRunArgs
216 return super(SessionRunArgs, cls).__new__(cls, fetches, feed_dict, options)

123456789