From: Benjamin Peterson Date: Thu, 1 Jul 2010 23:35:37 +0000 (+0000) Subject: trunc does use the special method, though X-Git-Tag: v2.7~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a08ce25e2da7dd0ae0f160f56582f3ac7e277fb;p=python trunc does use the special method, though --- diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 31e64a2147..e5ffba0d2c 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -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