Commits

Benjamin Peterson  committed 43f06ca

trunc does use the special method, though

  • Participants
  • Parent commits c53e135
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/library/math.rst

 .. function:: trunc(x)
 
    Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
-   a long integer).
+   a long integer).  Uses the ``__trunc__`` method.
 
    .. versionadded:: 2.6