Uh oh!
There was an error while loading. Please reload this page.
gh-94673: Ensure subtypes are readied only once in math.trunc() - #105465
Conversation
miss-islington
commented
Jun 7, 2023
Thanks @neonene for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
bedevere-bot
commented
Jun 7, 2023
GH-105471 is a backport of this pull request to the 3.12 branch. |
…pythongh-105465) Fixes a typo in d2e2e53. (cherry picked from commit 5394bf9) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
mdickinson
commented
Jun 8, 2023
Out of curiosity, why is the code for |
ericsnowcurrently
commented
Jun 8, 2023
Hmm, I have a guess. That code was added in 2007 (commit 15d3d04) as a builtin (bltinsmodule.c). In 2008 the function was moved to the math module. So that's probably the difference. |
mdickinson
commented
Jun 10, 2023
@ericsnowcurrently Nice find; that would make sense. (Well, maybe; I still can't quite figure out why the Do you see any reason not to just get rid of this code in |
ericsnowcurrently
commented
Jun 12, 2023
I suspect that code is an artifact of a time when folks were inconsistent about calling |
Fixes a typo in d2e2e53.
cc: @ericsnowcurrently