/external/python/enum34/enum/ |
D | __init__.py | 153 def __new__(metacls, cls, bases, classdict): member in EnumMeta 165 __new__, save_new, use_args = metacls._find_new_(classdict, member_type, 200 enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict) 215 if __new__ is None: 216 __new__ = enum_class.__new__ 226 enum_member = __new__(enum_class) 230 enum_member = __new__(enum_class, *args) 347 return cls.__new__(cls, value) 467 enum_class = metacls.__new__(metacls, class_name, bases, classdict) 542 __new__ = classdict.get('__new__', None) [all …]
|
D | test.py | 1186 def __new__(metacls, cls, bases, classdict): member in TestEnum.test_multiple_mixin_mro.auto_enum 1205 return super(auto_enum, metacls).__new__( 1225 def __new__(cls, *args): member in TestEnum.test_subclasses_with_getnewargs.NamedInt 1230 self = int.__new__(cls, *args) 1267 self.assertTrue(NEI.__new__ is Enum.__new__) 1281 def __new__(cls, *args): member in TestEnum.test_subclasses_with_getnewargs_ex.NamedInt 1286 self = int.__new__(cls, *args) 1324 self.assertIs(NEI.__new__, Enum.__new__) 1337 def __new__(cls, *args): member in TestEnum.test_subclasses_with_reduce.NamedInt 1342 self = int.__new__(cls, *args) [all …]
|
/external/python/cpython3/Lib/ |
D | enum.py | 136 def __new__(metacls, cls, bases, classdict): member in EnumMeta 148 __new__, save_new, use_args = metacls._find_new_(classdict, member_type, 171 enum_class = super().__new__(metacls, cls, bases, classdict) 215 enum_member = __new__(enum_class) 219 enum_member = __new__(enum_class, *args) 271 enum_class.__new_member__ = __new__ 272 enum_class.__new__ = Enum.__new__ 315 return cls.__new__(cls, value) 427 enum_class = metacls.__new__(metacls, class_name, bases, classdict) 540 __new__ = classdict.get('__new__', None) [all …]
|
D | copyreg.py | 43 obj = object.__new__(cls) 45 obj = base.__new__(cls, state) 51 _new_type = type(int.__new__) 61 new = base.__new__ 95 return cls.__new__(cls, *args) 101 return cls.__new__(cls, *args, **kwargs)
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | version_utils.py | 54 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument member in ModelVersionSelector 57 return super(ModelVersionSelector, cls).__new__(cls) 63 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument member in LayerVersionSelector 66 return super(LayerVersionSelector, cls).__new__(cls) 72 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument member in TensorBoardVersionSelector 81 return super(TensorBoardVersionSelector, cls).__new__(cls)
|
D | generic_utils_test.py | 196 def __new__(cls, value): member in SerializeKerasObjectTest.test_serializable_object.SerializableInt 197 return int.__new__(cls, value) 224 def __new__(cls, value): member in SerializeKerasObjectTest.test_nested_serializable_object.SerializableInt 225 return int.__new__(cls, value) 237 def __new__(cls, value, int_obj): member in SerializeKerasObjectTest.test_nested_serializable_object.SerializableNestedInt 238 obj = int.__new__(cls, value) 283 def __new__(cls, value, fn): member in SerializeKerasObjectTest.test_nested_serializable_fn.SerializableNestedInt 284 obj = int.__new__(cls, value)
|
/external/python/cpython3/Lib/test/ |
D | test_super.py | 151 def __new__(cls, name, bases, namespace): member in TestSuper.test___class___new.Meta 153 self = super().__new__(cls, name, bases, namespace) 169 def __new__(cls, name, bases, namespace): member in TestSuper.test___class___delayed.Meta 204 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___expected_behaviour.Meta 207 return super().__new__(cls, name, bases, namespace) 237 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___missing.Meta 239 return super().__new__(cls, name, bases, namespace) 259 def __new__(cls, name, bases, namespace, cell): member in TestSuper.test___classcell___overwrite.Meta 261 return super().__new__(cls, name, bases, namespace) 273 def __new__(cls, name, bases, namespace): member in TestSuper.test___classcell___wrong_cell.Meta [all …]
|
D | test_subclassinit.py | 117 def __new__(cls, name, bases, ns): member in Test.test_set_name_metaclass.Meta 118 ret = super().__new__(cls, name, bases, ns) 181 def __new__(cls, name, bases, ns): member in Test.test_set_name_init_subclass.Meta 182 self = super().__new__(cls, name, bases, ns) 239 def __new__(cls, name, bases, namespace, otherarg): member in Test.test_errors.MyMeta 240 return super().__new__(cls, name, bases, namespace) 254 def __new__(cls, name, bases, namespace): member in Test.test_errors_changed_pep487.MyMeta 255 return super().__new__(cls, name=name, bases=bases, 263 def __new__(cls, name, bases, namespace, otherarg): member in Test.test_errors_changed_pep487.MyMeta 264 self = super().__new__(cls, name, bases, namespace)
|
/external/python/cpython3/Tools/c-analyzer/c_analyzer/parser/ |
D | preprocessor.py | 146 def __new__(cls, name, value=None): member in Constant 147 self = super().__new__( 173 def __new__(cls, name, args, body=None): member in Macro 179 self = super().__new__( 245 def __new__(cls, kind, condition): member in IfDirective 247 self = super().__new__( 296 def __new__(cls, file): member in Include 297 self = super().__new__( 328 def __new__(cls, kind, text): member in OtherDirective 329 self = super().__new__(
|
/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/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/ |
D | test_discovery.py | 219 program = object.__new__(unittest2.TestProgram) 239 program = object.__new__(unittest2.TestProgram) 247 program = object.__new__(unittest2.TestProgram) 262 program = object.__new__(unittest2.TestProgram) 268 program = object.__new__(unittest2.TestProgram) 274 program = object.__new__(unittest2.TestProgram) 280 program = object.__new__(unittest2.TestProgram) 286 program = object.__new__(unittest2.TestProgram) 292 program = object.__new__(unittest2.TestProgram) 298 program = object.__new__(unittest2.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/tensorflow/tensorflow/python/data/experimental/service/ |
D | server_lib.py | 64 def __new__(cls, member in DispatcherConfig 76 cls).__new__(cls, port, protocol, work_dir, 243 def __new__(cls, member in WorkerConfig 258 cls).__new__(cls, dispatcher_address, worker_address, port,
|
/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/tensorflow/tensorflow/python/distribute/ |
D | distribute_config.py | 40 def __new__(cls, member in DistributeConfig 44 return super(DistributeConfig, cls).__new__(cls, train_distribute,
|
/external/toolchain-utils/cros_utils/ |
D | file_utils.py | 26 def __new__(cls, *args, **kwargs): member in FileUtils 29 cls._instance = super(FileUtils, cls).__new__(MockFileUtils, *args, 32 cls._instance = super(FileUtils, cls).__new__(cls, *args, **kwargs)
|
/external/python/setuptools/setuptools/_vendor/packaging/ |
D | _compat.py | 28 def __new__(cls, name, this_bases, d): member in with_metaclass.metaclass 30 return type.__new__(metaclass, 'temporary_class', (), {})
|
/external/python/setuptools/pkg_resources/_vendor/packaging/ |
D | _compat.py | 28 def __new__(cls, name, this_bases, d): member in with_metaclass.metaclass 30 return type.__new__(metaclass, 'temporary_class', (), {})
|
/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 17 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
|
/external/python/pyasn1/pyasn1/codec/ber/ |
D | eoo.py | 21 def __new__(cls, *args, **kwargs): member in EndOfOctets 23 cls._instance = object.__new__(cls, *args, **kwargs)
|
/external/tensorflow/tensorflow/python/eager/ |
D | forwardprop_util.py | 34 def __new__(cls, indices=None, tangents=None): member in TangentInfo 39 return super(TangentInfo, cls).__new__(cls, indices, tangents)
|
/external/protobuf/python/google/protobuf/ |
D | descriptor.py | 79 def __new__(cls): member in _Lock 80 self = object.__new__(cls) 281 def __new__(cls, name, full_name, filename, containing_type, fields, member in Descriptor 524 def __new__(cls, name, full_name, index, number, type, cpp_type, label, member in FieldDescriptor 635 def __new__(cls, name, full_name, filename, values, member in EnumDescriptor 691 def __new__(cls, name, index, number, member in EnumValueDescriptor 730 def __new__( member in OneofDescriptor 770 def __new__(cls, name, full_name, index, methods, options=None, member in ServiceDescriptor 822 def __new__(cls, name, full_name, index, containing_service, member in MethodDescriptor 870 def __new__(cls, name, package, options=None, member in FileDescriptor [all …]
|
/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__(
|