Searched refs:same_quantum (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1660 self.assertEqual(Decimal(1234).same_quantum(1000), 1661 Decimal(1234).same_quantum(Decimal(1000))) 2166 d = c.same_quantum(Decimal(1), Decimal(2)) 2167 self.assertEqual(c.same_quantum(1, 2), d) 2168 self.assertEqual(c.same_quantum(Decimal(1), 2), d) 2169 self.assertEqual(c.same_quantum(1, Decimal(2)), d) 2170 self.assertRaises(TypeError, c.same_quantum, '1', 2) 2171 self.assertRaises(TypeError, c.same_quantum, 1, '2')
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 2447 self.assertEqual(Decimal(1234).same_quantum(1000), 2448 Decimal(1234).same_quantum(Decimal(1000))) 3479 d = c.same_quantum(Decimal(1), Decimal(2)) 3480 self.assertEqual(c.same_quantum(1, 2), d) 3481 self.assertEqual(c.same_quantum(Decimal(1), 2), d) 3482 self.assertEqual(c.same_quantum(1, Decimal(2)), d) 3483 self.assertRaises(TypeError, c.same_quantum, '1', 2) 3484 self.assertRaises(TypeError, c.same_quantum, 1, '2') 5112 self.assertRaises(TypeError, Decimal(9).same_quantum, 3, "x", "y") 5139 self.assertRaises(TypeError, c.same_quantum, 9, 3, "x", "y")
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 2597 def same_quantum(self, other, context=None): member in Decimal 5388 def same_quantum(self, a, b): member in Context 5410 return a.same_quantum(b)
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2491 def same_quantum(self, other): member in Decimal 5212 def same_quantum(self, a, b): member in Context 5234 return a.same_quantum(b)
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 854 .. method:: same_quantum(other[, context]) 1431 .. method:: same_quantum(x, y)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 829 .. method:: same_quantum(other, context=None) 1413 .. method:: same_quantum(x, y)
|