-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-132413: Fix crash in _datetime when used at shutdown #132599
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
Closed
Closed
Changes from 28 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a2d90ae
Update datetimetester.py
neonene 37d317f
Make interp-dict have a strong ref to the module
neonene 44d09c9
Fix exc leak
neonene 19326d4
📜🤖 Added by blurb_it.
blurb-it[bot] c74251d
Merge branch 'main' into fix-132413
neonene f805ec7
Add assertion in test
neonene 1539cc6
More assertion
neonene e6aa018
Allow only module's exec() to create interp-dict
neonene 5141a76
Safer ref cycle between mod and interp-dict
neonene 76cc153
Respect interp-dict held in module state
neonene e5bb7c8
Update _datetimemodule.c
neonene 2645282
Merge branch 'main' into fix-132413
neonene 87aa7a2
Update datetimetester.py
neonene b425bc8
Reword
neonene 19de232
typo
neonene f7b78d9
Reword
neonene 05811bb
Cleanup
neonene 1416c6f
Merge branch 'main' into fix-132413
neonene 351ac36
assert(!_Py_IsInterpreterFinalizing())
neonene 0e4a263
Add tests
neonene fa0cc40
Update tests
neonene 0377764
Take account of interp restart
neonene 9af13a6
Add subinterp tests
neonene 124d650
Fix tests for free-threaded builds
neonene c490586
Nit
neonene 29c45a3
Merge branch 'main' into fix-132413
neonene db47683
Make tests generic
neonene ddd1635
Fix warnings
neonene 746bf85
Update tests
neonene 1cdaf5a
Merge branch 'main' into fix-132413
neonene a8f76fa
Revert to original (main)
neonene c7fc55e
Convert IsoCalendarDate to static type (3.12)
neonene b3d8a8e
Merge branch 'main' into fix-132413
neonene 539cfed
Fix warning
neonene f2373f4
Merge branch 'main' into fix-132413
neonene d9f8544
Fix refleaks
neonene 07ca91f
Ditto
neonene 13b065f
Move up a function
neonene 0052451
Smaller patch for tests
neonene fb29db1
Merge branch 'main' into fix-132413
neonene d2e2a11
Add a non-issue test case (closure)
neonene 2da198e
minimize test
neonene 2392247
Merge branch 'main' into fix-132413
neonene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2025-04-16-14-34-04.gh-issue-132413.TvpIn2.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix crash in C version of :mod:`datetime` when used during interpreter shutdown. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.