mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
trunc does use the special method, though
This commit is contained in:
parent
52a70c4a12
commit
8a08ce25e2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue