]> granicus.if.org Git - python/commitdiff
trunc does use the special method, though
authorBenjamin Peterson <benjamin@python.org>
Thu, 1 Jul 2010 23:35:37 +0000 (23:35 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 1 Jul 2010 23:35:37 +0000 (23:35 +0000)
Doc/library/math.rst

index 31e64a21470c8f5ad6a018500a490ba3fb1cdc21..e5ffba0d2cc918f706b3bc896708fa2c2678e1ac 100644 (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