-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-126881: fix finalization of dtoa state #126904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Would a test be helpful here? |
Yeah, I was also wondering this. Probably a bit annoying to write a regression test, but I also feel like it would be good to have one. |
Regression tests for these don't work well because it relies on GC calling finalizers at late in finalization which isn't reliable, the order or when it will be called is random. As such I avoid adding such tests and manually test these changes. |
Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit 762c603) Co-authored-by: Kumar Aditya <[email protected]>
GH-127395 is a backport of this pull request to the 3.13 branch. |
Ah, Python 3.12 doesn't have the _PyDtoa_Fini() function. |
asyncio.base_events.BaseEventLoop
when passed a small float toset_debug
. #126881