Home
last modified time | relevance | path

Searched refs:same_quantum (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_decimal.py1660 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/
Dtest_decimal.py2430 self.assertEqual(Decimal(1234).same_quantum(1000),
2431 Decimal(1234).same_quantum(Decimal(1000)))
3460 d = c.same_quantum(Decimal(1), Decimal(2))
3461 self.assertEqual(c.same_quantum(1, 2), d)
3462 self.assertEqual(c.same_quantum(Decimal(1), 2), d)
3463 self.assertEqual(c.same_quantum(1, Decimal(2)), d)
3464 self.assertRaises(TypeError, c.same_quantum, '1', 2)
3465 self.assertRaises(TypeError, c.same_quantum, 1, '2')
5093 self.assertRaises(TypeError, Decimal(9).same_quantum, 3, "x", "y")
5120 self.assertRaises(TypeError, c.same_quantum, 9, 3, "x", "y")
/external/python/cpython2/Lib/
Ddecimal.py2491 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/cpython3/Lib/
D_pydecimal.py2597 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/Doc/library/
Ddecimal.rst854 .. method:: same_quantum(other[, context])
1431 .. method:: same_quantum(x, y)
/external/python/cpython3/Doc/library/
Ddecimal.rst829 .. method:: same_quantum(other, context=None)
1413 .. method:: same_quantum(x, y)