Message400060
I think there's no reason not to keep __trunc__ and math.trunc - they're natural counterparts to floor and ceil, and there's probably at least some code out there already using math.trunc.
It's the involvement of __trunc__ in the int() builtin that I'd quite like to deprecate and eventually remove. I think at this point it complicates the object model for no particularly good reason. But this is getting off-topic for this issue; I'll open a new one. |
|
| Date |
User |
Action |
Args |
| 2021-08-22 09:03:03 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, mamrhein, serhiy.storchaka, josh.r |
| 2021-08-22 09:03:03 | mark.dickinson | set | messageid: <1629622983.35.0.812019170704.issue44547@roundup.psfhosted.org> |
| 2021-08-22 09:03:03 | mark.dickinson | link | issue44547 messages |
| 2021-08-22 09:03:03 | mark.dickinson | create | |
|