/third_party/python/Doc/library/ |
D | fractions.rst | 169 .. method:: __round__() 170 __round__(ndigits)
|
D | typing.rst | 1920 An ABC with one abstract method ``__round__``
|
D | functions.rst | 1531 ``number.__round__``.
|
D | unittest.mock.rst | 2014 * ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
|
/third_party/python/Lib/ |
D | numbers.py | 189 def __round__(self, ndigits=None): member in Real
|
D | fractions.py | 612 def __round__(self, ndigits=None): member in Fraction
|
D | typing.py | 2221 def __round__(self, ndigits: int = 0) -> T_co: member in SupportsRound
|
D | _pydecimal.py | 1830 def __round__(self, n=None): member in Decimal
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 284 self.assertEqual(round(mock), mock.__round__()) 310 self.assertEqual(round(mock), mock.__round__())
|
/third_party/python/Lib/test/ |
D | test_decimal.py | 4492 self.assertEqual(str(Decimal("9.99").__round__()), "10") 4493 self.assertEqual(str(Decimal("9.99e-5").__round__()), "0") 4494 self.assertEqual(str(Decimal("1.23456789").__round__(5)), "1.23457") 4495 self.assertEqual(str(Decimal("1.2345").__round__(10)), "1.2345000000") 4496 self.assertEqual(str(Decimal("1.2345").__round__(-10)), "0E+10") 4498 self.assertRaises(TypeError, Decimal("1.23").__round__, "5") 4499 self.assertRaises(TypeError, Decimal("1.23").__round__, 5, 8) 5053 self.assertRaises(InvalidOperation, Decimal("1.23").__round__, 5055 self.assertRaises(InvalidOperation, Decimal("1.23").__round__, 5057 self.assertRaises(InvalidOperation, Decimal("1").__round__, [all …]
|
D | test_builtin.py | 1411 def __round__(self): member in BuiltinTest.test_round.TestRound 1423 t.__round__ = lambda *args: args
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 864 def __round__(self): member in NonStandardInteger
|
/third_party/python/Modules/_decimal/tests/ |
D | deccheck.py | 559 def __round__(self, t): member in SkipHandler
|
/third_party/python/Python/ |
D | bltinmodule.c | 16 _Py_IDENTIFIER(__round__);
|
/third_party/python/Doc/whatsnew/ |
D | 3.0.rst | 816 delegates to ``x.__round__([n])`` instead of always returning a
|
/third_party/python/Tools/c-analyzer/ |
D | TODO | 497 Python/bltinmodule.c:PyId___round__ _Py_IDENTIFIER(__round__)
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 2679 .. method:: object.__round__(self, [,ndigits]) 2688 Unless *ndigits* is passed to :meth:`!__round__` all these methods should
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0a1.rst | 4759 :class:`unittest.mock.MagicMock` now supports the ``__round__`` magic
|
/third_party/python/Misc/ |
D | HISTORY | 4447 - Issue #17722: When looking up __round__, resolve descriptors. 16780 - The Decimal module gained the magic methods __round__, __ceil__,
|