/external/python/cpython3/Lib/ |
D | enum.py | 124 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 …]
|
D | typing.py | 128 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 …]
|
D | copyreg.py | 43 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/ |
D | test_super.py | 154 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 …]
|
D | test_subclassinit.py | 118 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)
|
D | test_descr.py | 263 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 …]
|
D | ann_module.py | 43 def __new__(meta, name, bases, namespace): member in Meta 44 return super().__new__(meta, name, bases, namespace)
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_discovery.py | 204 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/ |
D | base_classes.py | 159 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)
|
D | asn1packet.py | 16 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/ |
D | file_utils.py | 21 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/ |
D | slots_metaclass.py | 23 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/ |
D | usb_descriptors.py | 95 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,
|
D | mbim_message.py | 91 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/ |
D | meta_class.py | 11 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/ |
D | feature_column.py | 342 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/ |
D | export_strategy.py | 59 def __new__(cls, name, export_fn, strip_default_attrs=None): member in ExportStrategy 60 return super(ExportStrategy, cls).__new__(
|
/external/python/cpython2/Lib/ |
D | copy_reg.py | 48 obj = object.__new__(cls) 50 obj = base.__new__(cls, state) 93 return cls.__new__(cls, *args)
|
/external/tensorflow/tensorflow/python/estimator/ |
D | warm_starting_util.py | 68 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__.py | 19 def __new__(cls, value, phrase, description=''): member in HTTPStatus 20 obj = int.__new__(cls, value)
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_init.py | 9 def __new__(cls): member in X 10 result = super().__new__(cls)
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_init.py | 9 def __new__(cls): member in X 10 result = super(X, cls).__new__(cls)
|
/external/scapy/scapy/layers/tls/crypto/ |
D | hash.py | 22 def __new__(cls, hash_name, bases, dct): member in _GenericHashMetaclass 25 the_class = super(_GenericHashMetaclass, cls).__new__(cls, hash_name,
|
/external/trappy/trappy/ |
D | dynamic.py | 52 def __new__(mcs, name, bases, dct): member in DynamicTypeFactory 54 return type.__new__(mcs, name, bases, dct)
|
/external/tensorflow/tensorflow/python/training/ |
D | session_run_hook.py | 215 def __new__(cls, fetches, feed_dict=None, options=None): member in SessionRunArgs 216 return super(SessionRunArgs, cls).__new__(cls, fetches, feed_dict, options)
|