Home
last modified time | relevance | path

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

123456

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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)
D_weakrefset.py76 return (self.__class__, (list(self),),
92 return self.__class__(self)
119 if isinstance(other, self.__class__):
131 if not isinstance(other, self.__class__):
132 other = self.__class__(other)
134 newset = self.__class__()
187 if not isinstance(other, self.__class__):
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.py175 return '%s()' % (self.__class__.__name__,)
176 return '%s(%r)' % (self.__class__.__name__, self.items())
187 return (self.__class__, (items,), inst_dict)
188 return self.__class__, (items,)
192 return self.__class__(self)
533 return self.__class__(self)
536 return self.__class__, (dict(self),)
545 return '%s()' % self.__class__.__name__
547 return '%s({%s})' % (self.__class__.__name__, items)
Dssl.py186 self.__class__)
205 self.__class__)
216 self.__class__)
231 self.__class__)
245 self.__class__)
256 self.__class__)
263 self.__class__)
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))
Dcopy_reg.py61 for base in self.__class__.__mro__:
69 if base is self.__class__:
72 args = (self.__class__, base, state)
Dast.py95 rv = '%s(%s' % (node.__class__.__name__, ', '.join(
109 raise TypeError('expected AST, got %r' % node.__class__.__name__)
194 raise TypeError("%r can't have docstrings" % node.__class__.__name__)
239 method = 'visit_' + node.__class__.__name__
DUserDict.py21 if hasattr(self.__class__, "__missing__"):
22 return self.__class__.__missing__(self, key)
28 if self.__class__ is UserDict:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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__
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_descr.py405 self.assertTrue(d.__class__ is dict)
484 self.assertEqual(d.__class__, D)
931 self.assertEqual(a.__class__, object)
1520 self.assertEqual(a.__class__, C)
1525 self.assertEqual(b.__class__, D)
1694 class DictSub(checker.__class__, dict):
1912 a.__class__.__cmp__(a, b)
1917 a.__class__, a, b))
2351 __class__ = property(__getclass) variable in ClassPropertiesAndMethods.test_dir.C
2400 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])
Dtest_compiler.py110 print node.__class__, node.lineno
114 if not node.__class__ in NOLINENO:
116 "lineno=%s on %s" % (node.lineno, node.__class__))
118 "lineno=%s on %s" % (node.lineno, node.__class__))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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__
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
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)
Dcollections.py177 return '%s()' % (self.__class__.__name__,)
178 return '%s(%r)' % (self.__class__.__name__, self.items())
189 return (self.__class__, (items,), inst_dict)
190 return self.__class__, (items,)
194 return self.__class__(self)
596 return self.__class__(self)
599 return self.__class__, (dict(self),)
608 return '%s()' % self.__class__.__name__
610 return '%s({%s})' % (self.__class__.__name__, items)
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))
Dcopy_reg.py61 for base in self.__class__.__mro__:
69 if base is self.__class__:
72 args = (self.__class__, base, state)
Dast.py95 rv = '%s(%s' % (node.__class__.__name__, ', '.join(
109 raise TypeError('expected AST, got %r' % node.__class__.__name__)
194 raise TypeError("%r can't have docstrings" % node.__class__.__name__)
239 method = 'visit_' + node.__class__.__name__
DUserDict.py21 if hasattr(self.__class__, "__missing__"):
22 return self.__class__.__missing__(self, key)
28 if self.__class__ is UserDict:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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__
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcmdfw.py88 print self.UsageMessage % {'name': self.__class__.__name__}
90 c = self.__class__
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/leakers/
Dtest_selftype.py11 U.__class__ = U

123456