Home
last modified time | relevance | path

Searched refs:__class__ (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/external/python/cpython3/Lib/test/
Dtest_super.py49 nonlocal __class__
50 __class__ = TestSuper
94 __class__ = 413 variable in TestSuper.test_various___class___pathologies.X
97 self.assertEqual(x.__class__, 413)
99 x = __class__
101 __class__
110 global __class__
111 __class__ = 42 variable in TestSuper.test_various___class___pathologies.X
113 __class__
118 nonlocal __class__
[all …]
Dtest_property.py107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter")
113 self.assertEqual(base.__class__.spam.__doc__, "BaseClass.getter")
118 self.assertEqual(base.__class__.spam.__doc__, "spam spam spam")
119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
126 self.assertEqual(newgettersub.__class__.spam.__doc__, "new docstring")
129 self.assertEqual(newgetter.__class__.spam.__doc__, "new docstring")
173 self.assertEqual(sub.__class__.spam.__doc__, 'Eggs')
174 sub.__class__.spam.__doc__ = 'Spam'
175 self.assertEqual(sub.__class__.spam.__doc__, 'Spam')
Dtest_descr.py403 self.assertIs(d.__class__, dict)
482 self.assertEqual(d.__class__, D)
1003 self.assertEqual(a.__class__, object)
1029 self.assertTrue(m.__class__ is types.ModuleType)
1032 m.__class__ = SubType
1033 self.assertTrue(m.__class__ is SubType)
1036 m.__class__ = types.ModuleType
1037 self.assertTrue(m.__class__ is types.ModuleType)
1053 (1).__class__ = MyInt
1058 (1.0).__class__ = MyFloat
[all …]
/external/python/cpython2/Lib/
DUserString.py38 def __getitem__(self, index): return self.__class__(self.data[index])
41 return self.__class__(self.data[start:end])
45 return self.__class__(self.data + other.data)
47 return self.__class__(self.data + other)
49 return self.__class__(self.data + str(other))
52 return self.__class__(other + self.data)
54 return self.__class__(str(other) + self.data)
56 return self.__class__(self.data*n)
59 return self.__class__(self.data % args)
62 def capitalize(self): return self.__class__(self.data.capitalize())
[all …]
DUserList.py36 return self.__class__(self.data[i:j])
50 return self.__class__(self.data + other.data)
52 return self.__class__(self.data + other)
54 return self.__class__(self.data + list(other))
57 return self.__class__(other.data + self.data)
59 return self.__class__(other + self.data)
61 return self.__class__(list(other) + self.data)
71 return self.__class__(self.data*n)
/external/fonttools/Lib/fontTools/misc/
DdictTools.py34 return "{0}({1})".format(self.__class__.__name__,
42 .format(self.__class__.__name__))
45 .format(self.__class__.__name__))
48 .format(self.__class__.__name__))
51 .format(self.__class__.__name__))
54 .format(self.__class__.__name__))
57 .format(self.__class__.__name__))
60 .format(self.__class__.__name__))
/external/python/cpython3/Lib/collections/
D__init__.py270 return '%s()' % (self.__class__.__name__,)
271 return '%s(%r)' % (self.__class__.__name__, list(self.items()))
278 return self.__class__, (), inst_dict or None, None, iter(self.items())
282 return self.__class__(self)
424 return self.__class__.__name__ + repr_fmt % self
693 return self.__class__(self)
696 return self.__class__, (dict(self),)
705 return '%s()' % self.__class__.__name__
708 return '%s({%s})' % (self.__class__.__name__, items)
711 return '{0}({1!r})'.format(self.__class__.__name__, dict(self))
[all …]
/external/autotest/client/common_lib/
Dcontrol_data.py304 assert(expr.__class__ == compiler.ast.Const)
305 assert(expr.value.__class__ in (str, int, float, unicode))
310 assert(expr.__class__ == compiler.ast.Dict)
311 assert(expr.items.__class__ == list)
325 assert(expr.__class__ == compiler.ast.List)
336 assert(expr.__class__ == compiler.ast.Name)
342 if expr.__class__ == compiler.ast.Const:
344 if expr.__class__ == compiler.ast.Name:
346 if expr.__class__ == compiler.ast.Dict:
348 if expr.__class__ == compiler.ast.List:
[all …]
/external/autotest/server/site_tests/firmware_Cr50PinWeaverServer/
Dfirmware_Cr50PinWeaverServer.py48 self.__class__.__name__)
71 self.__class__.__name__)
86 self.__class__.__name__)
90 self.__class__.__name__)
103 self.__class__.__name__)
106 self.__class__.__name__)
114 self.__class__.__name__)
125 self.__class__.__name__)
133 self.__class__.__name__)
/external/python/cpython3/Lib/
Denum.py401 metacls = cls.__class__
581 self.__class__.__name__, self._name_, self._value_)
584 return "%s.%s" % (self.__class__.__name__, self._name_)
589 for cls in self.__class__.mro()
614 return self.__class__, (self._value_, )
730 if not isinstance(other, self.__class__):
740 cls = self.__class__
751 cls = self.__class__
767 if not isinstance(other, self.__class__):
769 return self.__class__(self._value_ | other._value_)
[all …]
Doperator.py258 return '%s.%s(%s)' % (self.__class__.__module__,
259 self.__class__.__qualname__,
263 return self.__class__, self._attrs
289 return '%s.%s(%s)' % (self.__class__.__module__,
290 self.__class__.__name__,
294 return self.__class__, self._items
323 return '%s.%s(%s)' % (self.__class__.__module__,
324 self.__class__.__name__,
329 return self.__class__, (self._name,) + self._args
332 return partial(self.__class__, self._name, **self._kwargs), self._args
/external/libchrome/third_party/markupsafe/
D__init__.py80 return self.__class__(super(Markup, self).__add__(self.escape(other)))
90 return self.__class__(text_type.__mul__(self, num))
99 return self.__class__(text_type.__mod__(self, arg))
103 self.__class__.__name__,
108 return self.__class__(text_type.join(self, map(self.escape, seq)))
112 return list(map(self.__class__, text_type.split(self, *args, **kwargs)))
116 return list(map(self.__class__, text_type.rsplit(self, *args, **kwargs)))
120 return list(map(self.__class__, text_type.splitlines(self, *args, **kwargs)))
163 if rv.__class__ is not cls:
172 return self.__class__(orig(self, *args, **kwargs))
[all …]
/external/python/cpython2/Lib/compiler/
Dvisitor.py44 klass = node.__class__
76 meth = self._cache.get(node.__class__, None)
77 className = node.__class__.__name__
80 self._cache[node.__class__] = meth
86 klass = node.__class__
110 print node.__class__
/external/fonttools/Lib/fontTools/ttLib/tables/
DBitmapGlyphMetrics.py36 writer.begintag(self.__class__.__name__)
38 for metricName in sstruct.getformat(self.__class__.binaryFormat)[1]:
41 writer.endtag(self.__class__.__name__)
45 metricNames = set(sstruct.getformat(self.__class__.binaryFormat)[1])
54 log.warning("unknown name '%s' being ignored in %s.", name, self.__class__.__name__)
/external/python/pyasn1/pyasn1/type/
Dtag.py68 return '<%s object at 0x%x tag %s>' % (self.__class__.__name__, id(self), representation)
107 return self.__class__(self.__tagClass & otherTag.tagClass,
112 return self.__class__(self.__tagClass | otherTag.tagClass,
202 return '<%s object at 0x%x %s>' % (self.__class__.__name__, id(self), representation)
205 return self.__class__(self.__baseTag, *self.__superTags + (superTag,))
208 return self.__class__(self.__baseTag, *(superTag,) + self.__superTags)
211 if i.__class__ is slice:
212 return self.__class__(self.__baseTag, *self.__superTags[i])
Dbase.py224 return '<%s object at 0x%x>' % (self.__class__.__name__, id(self))
246 raise exType('%s at %s' % (exValue, self.__class__.__name__))
252 self.__class__.__name__, self.isValue and 'value' or 'schema', id(self)
349 return self.__class__(value, **initilaizers)
417 return self.__class__(value, **initializers)
430 return '%s -> %s' % (self.tagSet, self.__class__.__name__)
474 self.__class__.__name__, self.isValue and 'value' or 'schema', id(self)
546 clone = self.__class__(**initilaizers)
611 clone = self.__class__(**initializers)
/external/python/cpython2/Lib/test/
Dtest_descr.py422 self.assertIs(d.__class__, dict)
501 self.assertEqual(d.__class__, D)
948 self.assertEqual(a.__class__, object)
1583 self.assertEqual(a.__class__, C)
1588 self.assertEqual(b.__class__, D)
1660 self.assertEqual(b.__class__, B)
1668 self.assertEqual(b.__class__, B)
1837 class DictSub(checker.__class__, dict):
2055 a.__class__.__cmp__(a, b)
2060 a.__class__, a, b))
[all …]
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format.py100 'class_name': model.__class__.__name__,
125 'class_name': model.optimizer.__class__.__name__,
372 if layer.__class__.__name__ == 'Bidirectional':
374 if layer.__class__.__name__ == 'TimeDistributed':
376 elif layer.__class__.__name__ in ['Model', 'Sequential']:
380 if layer.__class__.__name__ == 'TimeDistributed':
384 if layer.__class__.__name__ == 'Conv1D':
395 if layer.__class__.__name__ == 'Conv2D':
401 if layer.__class__.__name__ == 'Conv2DTranspose':
411 if layer.__class__.__name__ == 'Conv3D':
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message.py407 field_names = self.__class__._find_field_names_of_type(field_type,
436 self.__class__.__name__)
454 self.__class__.__name__)
471 self.__class__.__name__)
483 cls = self.__class__
500 message_class = self.__class__
523 logging.debug('Class Name: %s', self.__class__.__name__)
524 for field_name in self.__class__.get_field_names(get_all=True):
541 message_class = message.__class__
/external/python/setuptools/pkg_resources/_vendor/packaging/
D_structures.py22 return isinstance(other, self.__class__)
25 return not isinstance(other, self.__class__)
54 return isinstance(other, self.__class__)
57 return not isinstance(other, self.__class__)
/external/python/setuptools/setuptools/_vendor/packaging/
D_structures.py22 return isinstance(other, self.__class__)
25 return not isinstance(other, self.__class__)
54 return isinstance(other, self.__class__)
57 return not isinstance(other, self.__class__)
/external/tensorflow/tensorflow/python/keras/layers/
Dserialization_test.py42 self.assertEqual(new_layer.bias_regularizer.__class__,
45 self.assertEqual(new_layer.kernel_initializer.__class__,
48 self.assertEqual(new_layer.kernel_initializer.__class__,
63 self.assertEqual(new_layer.beta_initializer.__class__,
67 self.assertEqual(new_layer.beta_initializer.__class__,
69 self.assertEqual(new_layer.gamma_regularizer.__class__,
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtest_support.py38 if kind1.__class__ != kind2.__class__ or kind1.spec != kind2.spec:
40 if kind1.__class__ == mojom.Kind:
42 if kind1.__class__ == mojom.Struct:
51 if kind1.__class__ == mojom.Array:
53 print 'Unknown Kind class: ', kind1.__class__.__name__
136 errors += EXPECT_EQ(mojom.Array, module.structs[0].fields[1].kind.__class__)
150 module.interfaces[0].methods[0].parameters[1].kind.__class__)
/external/python/cpython2/Lib/unittest/
Dsuite.py24 return "<%s tests=%s>" % (util.strclass(self.__class__), list(self))
27 if not isinstance(other, self.__class__):
101 result._previousTestClass = test.__class__
103 if (getattr(test.__class__, '_classSetupFailed', False) or
127 currentClass = test.__class__
167 currentModule = test.__class__.__module__
227 currentClass = test.__class__
/external/python/cpython3/Lib/email/
D_policybase.py53 name, self.__class__.__name__))
58 return "{}({})".format(self.__class__.__name__, ', '.join(args))
67 newpolicy = self.__class__.__new__(self.__class__)
74 attr, self.__class__.__name__))
83 raise AttributeError(msg.format(self.__class__.__name__, name))

12345678910>>...31