Searched refs:compare_signal (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1632 self.assertEqual(Decimal(4).compare_signal(3), 1633 Decimal(4).compare_signal(Decimal(3))) 1818 d = c.compare_signal(Decimal(1), Decimal(1)) 1819 self.assertEqual(c.compare_signal(1, 1), d) 1820 self.assertEqual(c.compare_signal(Decimal(1), 1), d) 1821 self.assertEqual(c.compare_signal(1, Decimal(1)), d) 1822 self.assertRaises(TypeError, c.compare_signal, '1', 1) 1823 self.assertRaises(TypeError, c.compare_signal, 1, '1')
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 2274 ans = str(x.compare_signal(8224, context=None)) 2276 self.assertRaises(InvalidOperation, x.compare_signal, Decimal('NaN'), context=None) 2419 self.assertEqual(Decimal(4).compare_signal(3), 2420 Decimal(4).compare_signal(Decimal(3))) 2704 D("0").compare_signal, D('nan'), context=xc) 2983 d = c.compare_signal(Decimal(1), Decimal(1)) 2984 self.assertEqual(c.compare_signal(1, 1), d) 2985 self.assertEqual(c.compare_signal(Decimal(1), 1), d) 2986 self.assertEqual(c.compare_signal(1, Decimal(1)), d) 2987 self.assertRaises(TypeError, c.compare_signal, '1', 1) [all …]
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 2923 def compare_signal(self, other, context=None): member in Decimal 4223 def compare_signal(self, a, b): member in Context 4256 return a.compare_signal(b, context=self)
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2817 def compare_signal(self, other, context=None): member in Decimal 4049 def compare_signal(self, a, b): member in Context 4082 return a.compare_signal(b, context=self)
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 457 .. method:: compare_signal(other[, context]) 1171 .. method:: compare_signal(x, y)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 496 .. method:: compare_signal(other, context=None) 1148 .. method:: compare_signal(x, y)
|