HomeSort by relevance Sort by last modified time
    Searched refs:__coerce__ (Results 1 - 12 of 12) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_compare.py 15 def __coerce__(self, other): member in class:Coerce
test_coercion.py 6 # Fake a number that implements numeric methods through __coerce__
14 def __coerce__(self, other): member in class:CoerceNumber
24 def __coerce__(self, other): member in class:CoerceTo
302 # same type, but a user-defined __coerce__ doesn't have to obey.
323 # if __coerce__() returns its arguments reversed it causes an infinite
326 def __coerce__(self, other): member in class:CoercionTest.test_infinite_rec_classic_classes.Tester
329 exc = TestFailed("__coerce__() returning its arguments reverse "
test_complex.py 116 self.assertRaises(OverflowError, complex.__coerce__, 1+1j, 1L<<10000)
121 def __coerce__(self, other): member in class:ComplexTest.test_no_implicit_coerce.A
test_class.py 80 def __coerce__(self, *args): member in class:AllTests
153 self.assertCallStack([("__coerce__", (testme, 1)), ("__add__", (testme, 1))])
157 self.assertCallStack([("__coerce__", (testme, 1)), ("__radd__", (testme, 1))])
161 self.assertCallStack([("__coerce__", (testme, 1)), ("__sub__", (testme, 1))])
165 self.assertCallStack([("__coerce__", (testme, 1)), ("__rsub__", (testme, 1))])
169 self.assertCallStack([("__coerce__", (testme, 1)), ("__mul__", (testme, 1))])
173 self.assertCallStack([("__coerce__", (testme, 1)), ("__rmul__", (testme, 1))])
178 self.assertCallStack([("__coerce__", (testme, 1)), ("__div__", (testme, 1))])
183 self.assertCallStack([("__coerce__", (testme, 1)), ("__rdiv__", (testme, 1))])
187 self.assertCallStack([("__coerce__", (testme, 1)), ("__mod__", (testme, 1))]
    [all...]
test_builtin.py 237 def __coerce__(self, other): member in class:BuiltinTest.test_coerce.BadNumber
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_compare.py 15 def __coerce__(self, other): member in class:Coerce
test_coercion.py 6 # Fake a number that implements numeric methods through __coerce__
14 def __coerce__(self, other): member in class:CoerceNumber
24 def __coerce__(self, other): member in class:CoerceTo
302 # same type, but a user-defined __coerce__ doesn't have to obey.
323 # if __coerce__() returns its arguments reversed it causes an infinite
326 def __coerce__(self, other): member in class:CoercionTest.test_infinite_rec_classic_classes.Tester
329 exc = TestFailed("__coerce__() returning its arguments reverse "
test_complex.py 116 self.assertRaises(OverflowError, complex.__coerce__, 1+1j, 1L<<10000)
121 def __coerce__(self, other): member in class:ComplexTest.test_no_implicit_coerce.A
test_class.py 80 def __coerce__(self, *args): member in class:AllTests
153 self.assertCallStack([("__coerce__", (testme, 1)), ("__add__", (testme, 1))])
157 self.assertCallStack([("__coerce__", (testme, 1)), ("__radd__", (testme, 1))])
161 self.assertCallStack([("__coerce__", (testme, 1)), ("__sub__", (testme, 1))])
165 self.assertCallStack([("__coerce__", (testme, 1)), ("__rsub__", (testme, 1))])
169 self.assertCallStack([("__coerce__", (testme, 1)), ("__mul__", (testme, 1))])
173 self.assertCallStack([("__coerce__", (testme, 1)), ("__rmul__", (testme, 1))])
178 self.assertCallStack([("__coerce__", (testme, 1)), ("__div__", (testme, 1))])
183 self.assertCallStack([("__coerce__", (testme, 1)), ("__rdiv__", (testme, 1))])
187 self.assertCallStack([("__coerce__", (testme, 1)), ("__mod__", (testme, 1))]
    [all...]
test_builtin.py 237 def __coerce__(self, other): member in class:BuiltinTest.test_coerce.BadNumber
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py     [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py     [all...]

Completed in 309 milliseconds