Searched refs:same_quantum (Results 1 – 3 of 3) 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/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)
|