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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a08ce25e2da7dd0ae0f160f56582f3ac7e277fb;p=thirdparty%2FPython%2Fcpython.git trunc does use the special method, though --- diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 31e64a21470c..e5ffba0d2cc9 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