From 8a08ce25e2da7dd0ae0f160f56582f3ac7e277fb Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 1 Jul 2010 23:35:37 +0000 Subject: trunc does use the special method, though --- Doc/library/math.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 31e64a2..e5ffba0 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 -- cgit v0.12