/external/python/cpython3/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 391 def __trunc__(self): member in IntTestCases.test_intconversion.NonIntegral 396 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonIntegral 414 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsBadInt 445 def __trunc__(self): member in IntTestCases.test_int_returns_int_subclass.TruncReturnsBadInt 449 def __trunc__(self): member in IntTestCases.test_int_returns_int_subclass.TruncReturnsIntSubclass
|
D | test_long.py | 393 def __trunc__(self): member in LongTest.test_conversion.LongTrunc
|
D | test_math.py | 1208 def __trunc__(self): member in MathTests.test_trunc.TestTrunc
|
/external/python/cpython2/Lib/test/ |
D | test_int.py | 449 def __trunc__(self): member in IntTestCases.test_intconversion.IntOverridesTrunc 454 def __trunc__(self): member in IntTestCases.test_intconversion.JustTrunc 464 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonInt 469 def __trunc__(self): member in IntTestCases.test_intconversion.NonIntegral 474 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsNonIntegral 487 def __trunc__(self): member in IntTestCases.test_intconversion.TruncReturnsIntSubclass
|
D | test_long.py | 526 def __trunc__(self): member in LongTest.test_conversion.LongOverridesTrunc 531 def __trunc__(self): member in LongTest.test_conversion.JustTrunc 541 def __trunc__(self): member in LongTest.test_conversion.TruncReturnsNonLong 546 def __trunc__(self): member in LongTest.test_conversion.NonIntegral 551 def __trunc__(self): member in LongTest.test_conversion.TruncReturnsNonIntegral
|
D | test_math.py | 875 def __trunc__(self): member in MathTests.test_trunc.TestTrunc
|
/external/python/cpython3/Lib/ |
D | numbers.py | 166 def __trunc__(self): member in Real
|
D | fractions.py | 504 def __trunc__(a): member in Fraction
|
D | _pydecimal.py | 1629 __trunc__ = __int__ variable in Decimal
|
/external/python/cpython2/Lib/ |
D | numbers.py | 188 def __trunc__(self): member in Real
|
D | fractions.py | 501 def __trunc__(a): member in Fraction
|
D | decimal.py | 1603 __trunc__ = __int__ variable in Decimal
|
/external/python/cpython3/Doc/library/ |
D | math.rst | 206 :meth:`x.__trunc__() <object.__trunc__>`.
|
D | functions.rst | 746 ``int(x)`` returns ``x.__int__()``. If *x* defines :meth:`__trunc__`, 747 it returns ``x.__trunc__()``.
|
D | unittest.mock.rst | 1697 * ``__floor__``, ``__trunc__`` and ``__ceil__``
|
/external/python/cpython2/Doc/library/ |
D | math.rst | 141 ``__trunc__`` method.
|
/external/python/pyasn1/pyasn1/type/ |
D | univ.py | 231 def __trunc__(self): member in Integer 1454 def __trunc__(self): member in Real
|
/external/python/cpython3/Modules/ |
D | mathmodule.c | 1729 _Py_IDENTIFIER(__trunc__); in math_trunc()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.12rc1.rst | 212 Fixed crash on converting objects with special methods __str__, __trunc__,
|
/external/python/pyasn1/ |
D | CHANGES.rst | 321 (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
|
/external/python/cpython3/Objects/ |
D | abstract.c | 1348 _Py_IDENTIFIER(__trunc__); in PyNumber_Long()
|
/external/python/cpython3/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__,
|
/external/python/cpython3/Doc/reference/ |
D | datamodel.rst | 2403 object.__trunc__(self) 2416 falls back to :meth:`__trunc__`.
|
/external/python/cpython3/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,
|