mirror of https://github.com/python/cpython
Merged revisions 82429 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r82429 | benjamin.peterson | 2010-07-01 18:35:37 -0500 (Thu, 01 Jul 2010) | 1 line trunc does use the special method, though ........
This commit is contained in:
parent
8356806880
commit
afaeaf18ee
|
@ -134,7 +134,7 @@ Number-theoretic and representation functions
|
||||||
.. function:: trunc(x)
|
.. function:: trunc(x)
|
||||||
|
|
||||||
Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
|
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
|
.. versionadded:: 2.6
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue