mdickinson · GitHub

added 3 commits

May 29, 2024 18:46

Closed

serhiy-storchaka

serhiy-storchaka

picnixz

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

mdickinson

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

mdickinson

@mdickinson

serhiy-storchaka

…runc-delegation

@mdickinson

barneygale pushed a commit to barneygale/cpython that referenced this pull request

Jun 5, 2024
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>

noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request

Jul 11, 2024
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>

estyxx pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024
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>

skirpichev added a commit to skirpichev/cpython that referenced this pull request

Feb 9, 2026

Merged

Merged

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 9, 2026

thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request

Feb 15, 2026

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026

Read the original on github.com ↗