/third_party/python/Lib/test/ |
D | test_int.py | 365 def __trunc__(self): member in IntTestCases.test_intconversion.IntOverridesTrunc 370 def __trunc__(self): member in IntTestCases.test_intconversion.JustTrunc 375 def __trunc__(self): member in IntTestCases.test_intconversion.ExceptionalTrunc 386 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonInt 395 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonIndex 400 def __trunc__(self): member in IntTestCases.test_intconversion.NonIntegral 405 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonIntegral 423 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsBadInt 479 def __trunc__(self): member in IntTestCases.test_int_returns_int_subclass.TruncReturnsBadIndex 483 def __trunc__(self): member in IntTestCases.test_int_returns_int_subclass.TruncReturnsBadInt [all …]
|
D | test_math.py | 1551 def __trunc__(self): member in MathTests.test_trunc.TestTrunc 1554 def __trunc__(self): member in MathTests.test_trunc.FloatTrunc
|
D | test_long.py | 393 def __trunc__(self): member in LongTest.test_conversion.LongTrunc
|
/third_party/python/Lib/ |
D | numbers.py | 166 def __trunc__(self): member in Real
|
D | fractions.py | 596 def __trunc__(a): member in Fraction
|
D | _pydecimal.py | 1633 __trunc__ = __int__ variable in Decimal
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 285 self.assertEqual(math.trunc(mock), mock.__trunc__()) 311 self.assertEqual(math.trunc(mock), mock.__trunc__())
|
/third_party/python/Doc/library/ |
D | math.rst | 303 :meth:`x.__trunc__() <object.__trunc__>`.
|
D | functions.rst | 859 it returns ``x.__index__()``. If *x* defines :meth:`__trunc__`, 860 it returns ``x.__trunc__()``.
|
D | unittest.mock.rst | 2014 * ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 783 def __trunc__(self): member in NonStandardInteger
|
/third_party/python/Modules/ |
D | mathmodule.c | 2114 _Py_IDENTIFIER(__trunc__); in math_trunc()
|
/third_party/python/Objects/ |
D | abstract.c | 1535 _Py_IDENTIFIER(__trunc__); in PyNumber_Long()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.2rc1.rst | 321 Fixed crash on converting objects with special methods __bytes__, __trunc__,
|
D | 3.6.0a1.rst | 536 Fixed crash on converting objects with special methods __bytes__, __trunc__,
|
/third_party/python/Tools/c-analyzer/ |
D | TODO | 331 Objects/abstract.c:PyNumber_Long():PyId___trunc__ _Py_IDENTIFIER(__trunc__)
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 2680 object.__trunc__(self) 2692 The built-in function :func:`int` falls back to :meth:`__trunc__` if neither
|
/third_party/python/Misc/ |
D | HISTORY | 152 __bytes__, __trunc__, and __float__ returning instances of subclasses of 4451 - Issue #17715: Fix segmentation fault from raising an exception in a __trunc__ 6488 - Issue #16060: Fix refcounting bug when `__trunc__()` returns an object whose 14203 - In the math module, correctly lookup __trunc__, __ceil__, and __floor__ as 15279 to an integer. Only the __int__ and __trunc__ slots are examined. 16781 __floor__ and __trunc__, to give support for round, math.ceil,
|