Home
last modified time | relevance | path

Searched refs:__trunc__ (Results 1 – 25 of 25) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_int.py365 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
Dtest_long.py393 def __trunc__(self): member in LongTest.test_conversion.LongTrunc
Dtest_math.py1208 def __trunc__(self): member in MathTests.test_trunc.TestTrunc
/external/python/cpython2/Lib/test/
Dtest_int.py449 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
Dtest_long.py526 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
Dtest_math.py875 def __trunc__(self): member in MathTests.test_trunc.TestTrunc
/external/python/cpython3/Lib/
Dnumbers.py166 def __trunc__(self): member in Real
Dfractions.py504 def __trunc__(a): member in Fraction
D_pydecimal.py1629 __trunc__ = __int__ variable in Decimal
/external/python/cpython2/Lib/
Dnumbers.py188 def __trunc__(self): member in Real
Dfractions.py501 def __trunc__(a): member in Fraction
Ddecimal.py1603 __trunc__ = __int__ variable in Decimal
/external/python/cpython3/Doc/library/
Dmath.rst206 :meth:`x.__trunc__() <object.__trunc__>`.
Dfunctions.rst746 ``int(x)`` returns ``x.__int__()``. If *x* defines :meth:`__trunc__`,
747 it returns ``x.__trunc__()``.
Dunittest.mock.rst1697 * ``__floor__``, ``__trunc__`` and ``__ceil__``
/external/python/cpython2/Doc/library/
Dmath.rst141 ``__trunc__`` method.
/external/python/pyasn1/pyasn1/type/
Duniv.py231 def __trunc__(self): member in Integer
1454 def __trunc__(self): member in Real
/external/python/cpython3/Modules/
Dmathmodule.c1729 _Py_IDENTIFIER(__trunc__); in math_trunc()
/external/python/cpython2/Misc/NEWS.d/
D2.7.12rc1.rst212 Fixed crash on converting objects with special methods __str__, __trunc__,
/external/python/pyasn1/
DCHANGES.rst321 (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
/external/python/cpython3/Objects/
Dabstract.c1348 _Py_IDENTIFIER(__trunc__); in PyNumber_Long()
/external/python/cpython3/Misc/NEWS.d/
D3.5.2rc1.rst321 Fixed crash on converting objects with special methods __bytes__, __trunc__,
D3.6.0a1.rst536 Fixed crash on converting objects with special methods __bytes__, __trunc__,
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2403 object.__trunc__(self)
2416 falls back to :meth:`__trunc__`.
/external/python/cpython3/Misc/
DHISTORY152 __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,