[issue44977] Deprecate delegation of int to __trunc__?

Mark Dickinson report at bugs.python.org
Sun Aug 22 11:13:07 EDT 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

A GitHub code search shows a substantial number of uses of math.trunc out in the wild:

https://github.com/search?q=math.trunc+extension%3Apy&type=Code

So unfortunately, getting rid of math.trunc and __trunc__ looks a bit too much as though it would cause gratuitous breakage.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44977>
_______________________________________


More information about the Python-bugs-list mailing list