]> granicus.if.org Git - python/commit
bpo-26701: Add documentation for __trunc__ (GH-6022)
authorEric Appelt <eric.appelt@gmail.com>
Sat, 10 Mar 2018 08:44:12 +0000 (02:44 -0600)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 10 Mar 2018 08:44:12 +0000 (18:44 +1000)
commit308eab979d153f1ab934383dc08bc4546ced8b6c
treebcc19dd71a3f513ac3089198b4f395f0491bff94
parent10485ebd40669d3e17ab4f477c8c898543bcccd1
bpo-26701: Add documentation for __trunc__ (GH-6022)

`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
Doc/library/functions.rst
Doc/library/math.rst
Doc/reference/datamodel.rst