trunc does use the special method, though

This commit is contained in:
Benjamin Peterson 2010-07-01 23:35:37 +00:00
parent 52a70c4a12
commit 8a08ce25e2

View file

@ -134,7 +134,7 @@ Number-theoretic and representation functions
.. 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