GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — gh-94673: Ensure subtypes are readied only once in math.trunc() by neonene · Pull Request #105465 · python/cpython Conversation
|
|
Thanks @neonene for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-105471 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…pythongh-105465) Fixes a typo in d2e2e53. (cherry picked from commit 5394bf9) Co-authored-by: neonene <[email protected]>
gh-105465) (gh-105471) Fixes a typo in d2e2e53. (cherry picked from commit 5394bf9) Co-authored-by: neonene <[email protected]>
|
Out of curiosity, why is the code for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I suspect that code is an artifact of a time when folks were inconsistent about calling |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.