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

`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