diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2024-06-02 09:16:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 09:16:49 (GMT) |
commit | f79ffc879b919604ed5de22ece83825006cf9a17 (patch) | |
tree | 4174214b7ad81d2277e584d4fa9e6c1ccec3e95a /Python/bltinmodule.c | |
parent | 4aed319a8eb63b205d6007c36713cacdbf1ce8a3 (diff) | |
download | cpython-f79ffc879b919604ed5de22ece83825006cf9a17.zip cpython-f79ffc879b919604ed5de22ece83825006cf9a17.tar.gz cpython-f79ffc879b919604ed5de22ece83825006cf9a17.tar.bz2 |
gh-119740: Remove deprecated trunc delegation (#119743)
Remove the delegation of `int` to the `__trunc__` special method: `int` will now only delegate to `__int__` and `__index__` (in that order). `__trunc__` continues to exist, but its sole purpose is to support `math.trunc`.
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions