]> granicus.if.org Git - python/commit
bpo-26701: Add documentation for __trunc__ (GH-6050)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Mar 2018 15:10:45 +0000 (07:10 -0800)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 10 Mar 2018 15:10:45 +0000 (01:10 +1000)
commit1028ca4f04c14cf40a8f3e7951623a96ec0143c2
tree8231cce71807da12d61a752828ea229053fa7129
parent19b42fe97cc15ff123f7ccb61a26fed817e850f7
bpo-26701: Add documentation for __trunc__ (GH-6050)

`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
(cherry picked from commit 308eab979d153f1ab934383dc08bc4546ced8b6c)

Co-authored-by: Eric Appelt <eric.appelt@gmail.com>
Doc/library/functions.rst
Doc/library/math.rst
Doc/reference/datamodel.rst