Skip to content

Declare module to be usable without GIL - #57

Merged
eerimoq merged 1 commit into
eerimoq:masterfrom
cody82:fix/no-gil-single-phase
Aug 21, 2026
Merged

Declare module to be usable without GIL#57
eerimoq merged 1 commit into
eerimoq:masterfrom
cody82:fix/no-gil-single-phase

Conversation

@cody82

@cody82 cody82 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Implemented according to these Instructions: https://docs.python.org/3/howto/free-threading-extensions.html#single-phase-initialization
Solves this issue: #56

Also added a missing reference counter incrementation.
I tested it with 3.12, 3.14 and 3.14t.

Multi-phase initialization is recommended but that would be a bigger change.

@eerimoq

eerimoq commented Aug 20, 2026

Copy link
Copy Markdown
Owner

ready for review? looks good I think

@cody82
cody82 marked this pull request as ready for review August 20, 2026 20:50
@eerimoq
eerimoq merged commit b1a837b into eerimoq:master Aug 21, 2026
9 checks passed
Sign up for free to 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.

2 participants