Home
last modified time | relevance | path

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

12345678910>>...15

/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)
Dsets.py75 if self.__class__ is BaseSet:
99 return '%s(%r)' % (self.__class__.__name__, elements)
147 result = self.__class__()
161 result = self.__class__()
192 result = self.__class__(self)
217 return self.__class__(common)
233 result = self.__class__()
261 result = self.__class__()
Dcollections.py189 return '%s()' % (self.__class__.__name__,)
190 return '%s(%r)' % (self.__class__.__name__, self.items())
201 return (self.__class__, (items,), inst_dict)
202 return self.__class__, (items,)
206 return self.__class__(self)
608 return self.__class__(self)
611 return self.__class__, (dict(self),)
620 return '%s()' % self.__class__.__name__
622 return '%s({%s})' % (self.__class__.__name__, items)
D_weakrefset.py78 return (self.__class__, (list(self),),
94 return self.__class__(self)
146 return self.__class__(item for item in other if item in self)
172 if not isinstance(other, self.__class__):
200 return self.__class__(e for s in (self, other) for e in s)
Dcopy.py128 y = x.__class__(*args)
131 y.__class__ = x.__class__
289 y = x.__class__(*args)
292 y.__class__ = x.__class__
395 new = self.__class__(deepcopy(self.arg, memo))
/external/autotest/client/common_lib/
Dcontrol_data.py299 assert(expr.__class__ == compiler.ast.Const)
300 assert(expr.value.__class__ in (str, int, float, unicode))
305 assert(expr.__class__ == compiler.ast.Dict)
306 assert(expr.items.__class__ == list)
320 assert(expr.__class__ == compiler.ast.List)
331 assert(expr.__class__ == compiler.ast.Name)
337 if expr.__class__ == compiler.ast.Const:
339 if expr.__class__ == compiler.ast.Name:
341 if expr.__class__ == compiler.ast.Dict:
343 if expr.__class__ == compiler.ast.List:
[all …]
/external/libmojo/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/fonttools/Lib/fontTools/ttLib/tables/
DBitmapGlyphMetrics.py33 writer.begintag(self.__class__.__name__)
35 for metricName in sstruct.getformat(self.__class__.binaryFormat)[1]:
38 writer.endtag(self.__class__.__name__)
42 metricNames = set(sstruct.getformat(self.__class__.binaryFormat)[1])
51 print("Warning: unknown name '%s' being ignored in %s." % name, self.__class__.__name__)
DE_B_D_T_.py48 locator = ttFont[self.__class__.locatorName]
83 locator = ttFont[self.__class__.locatorName]
123 locator = ttFont[self.__class__.locatorName]
138 locator = ttFont[self.__class__.locatorName]
169 print("Warning: %s being ignored by %s", name, self.__class__.__name__)
402 return safeEval(self.__class__.__name__[len(_bitmapGlyphSubclassPrefix):])
405 writer.begintag(self.__class__.__name__, [('name', glyphName)])
412 writer.endtag(self.__class__.__name__)
425 assert option in self.__class__.xmlDataFunctions
439 writeFunc, readFunc = self.__class__.xmlDataFunctions[ttFont.bitmapGlyphDataFormat]
[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/python/cpython2/Lib/test/
Dtest_descr.py415 self.assertIs(d.__class__, dict)
494 self.assertEqual(d.__class__, D)
941 self.assertEqual(a.__class__, object)
1546 self.assertEqual(a.__class__, C)
1551 self.assertEqual(b.__class__, D)
1720 class DictSub(checker.__class__, dict):
1938 a.__class__.__cmp__(a, b)
1943 a.__class__, a, b))
2378 __class__ = property(__getclass) variable in ClassPropertiesAndMethods.test_dir.C
2427 return "F(%r)[%s]" % (a, s.__class__.__name__) + s.meth(a)
[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")
Dtest_pep352.py41 (ins.__class__.__name__, attr))
111 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
124 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
135 [repr(exc), exc.__class__.__name__ + '()'], [True, True])
/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/libmojo/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__)
Dmodule.py75 obj.__class__.__name__,
93 return '<%s spec=%r>' % (self.__class__.__name__, self.spec)
117 return '<%s spec=%r is_nullable=%r>' % (self.__class__.__name__, self.spec,
271 if self.__class__.__name__ == 'Field':
320 self.__class__.__name__, self.name,
366 self.__class__.__name__, self.spec, self.is_nullable,
404 self.__class__.__name__, self.spec, self.is_nullable, Repr(self.kind),
448 self.__class__.__name__, self.spec, self.is_nullable,
494 return '<%s name=%r kind=%s>' % (self.__class__.__name__, self.name,
514 return '<%s name=%r>' % (self.__class__.__name__, self.name)
[all …]
/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/autotest/scheduler/
Drdb_requests.py123 (self.__class__, key, type(value), value))
128 (self.__class__, self.template._fields, kwargs.keys()))
176 (self.__class__, self.template._fields, kwargs.keys()))
211 (self.__class__, self.template._fields, kwargs.keys()))
/external/python/cpython2/Lib/bsddb/test/
Dtest_associate.py80 self.filename = self.__class__.__name__ + '.db'
94 self.__class__.__name__
128 self.filename = self.__class__.__name__ + '.db'
186 self.__class__.__name__
208 self.__class__.__name__
217 self.__class__.__name__
225 self.__class__.__name__
338 self.__class__.__name__
/external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/criterion/
DExclusiveCriterion.py56 currentValue, self.__class__.__name__))
59 return self.__class__.__name__ + ' : ' + str(self.__currentValue)
/external/fonttools/Lib/fontTools/misc/
Dtransform.py193 return self.__class__(
216 return self.__class__(
242 return self.__class__(xx, xy, yx, yy, dx, dy)
324 return "<%s [%s %s %s %s %s %s]>" % ((self.__class__.__name__,) \
/external/python/cpython2/Lib/distutils/
Dcmd.py60 if self.__class__ is Command:
136 "abstract method -- subclass %s must override" % self.__class__
150 "abstract method -- subclass %s must override" % self.__class__
178 "abstract method -- subclass %s must override" % self.__class__
278 return self.__class__.__name__
/external/libmojo/third_party/jinja2/
Dutils.py166 if obj.__class__.__module__ in ('__builtin__', 'builtins'):
167 name = obj.__class__.__name__
169 name = obj.__class__.__module__ + '.' + obj.__class__.__name__
331 rv = self.__class__(self.capacity)
376 self.__class__.__name__,
/external/autotest/client/site_tests/firmware_TouchMTB/
Dvalidators.py286 name = self.__class__.__name__
334 validator.criteria_str, mf, device, validator.__class__.__name__)
391 name = get_derived_name(self.__class__.__name__, segments)
521 name = get_derived_name(self.__class__.__name__, segments)
694 self.name = self.__class__.__name__
747 name = self.__class__.__name__
797 name = self.__class__.__name__
845 name = self.__class__.__name__
870 name = get_derived_name(self.__class__.__name__, segments)
906 self.name = self.__class__.__name__
[all …]

12345678910>>...15