Skip to content

Conversation

@neonene
Copy link
Contributor

@neoneneneonene commented Jun 30, 2025

The _datetime module has a weakref to the module itself, which is expected to be connected all its life. However, finalize_remove_modules() in pylifecycle.c shares the same weakref, then the GC clears it before finishing the module.

The module should be cleared first, bypassing the GC once.

@neoneneneonene marked this pull request as ready for review July 1, 2025 20:00
@neonene
Copy link
ContributorAuthor

neonene commented Jul 1, 2025

A fundamental fix seems to be comming.

@neoneneneonene marked this pull request as draft July 2, 2025 18:54
@neoneneneonene closed this Jul 9, 2025
@neoneneneonene reopened this Aug 10, 2025
@neoneneneonene changed the base branch from main to 3.14August 10, 2025 21:41
@neoneneneonene changed the base branch from 3.14 to mainAugust 10, 2025 21:43
@neoneneneonene changed the base branch from main to 3.14August 10, 2025 21:46
@neoneneneonene changed the base branch from 3.14 to mainAugust 10, 2025 21:47
@neoneneneonene closed this Aug 10, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@neonene