gh-126881: fix finalization of dtoa state#126904
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.BaseEventLoopwhen passed a small float toset_debug. #126881