Skip to content

Add free-threaded python to CI including multithreading test#358

Merged
ahupp merged 5 commits into
ahupp:masterfrom
ddelange:free-threading
May 11, 2026
Merged

Add free-threaded python to CI including multithreading test#358
ahupp merged 5 commits into
ahupp:masterfrom
ddelange:free-threading

Conversation

@ddelange
Copy link
Copy Markdown
Contributor

@ddelange ddelange commented Oct 14, 2025

Supersedes #357, follow-up on 8a35137

Comment thread magic/__init__.py Outdated
@ddelange ddelange changed the title Free threading Make top level libmagic functions thread-safe, add free-threaded python to CI Oct 14, 2025
@ddelange ddelange force-pushed the free-threading branch 2 times, most recently from 74dfc08 to 79b6d26 Compare October 14, 2025 11:38
Comment thread test/python_magic_test.py
Comment thread .github/workflows/ci.yml Outdated
Comment thread tox.ini Outdated
Copy link
Copy Markdown
Contributor

@cclauss cclauss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks.

@ddelange ddelange changed the title Make top level libmagic functions thread-safe, add free-threaded python to CI Add free-threaded python to CI including multithreading test Oct 17, 2025
@ddelange
Copy link
Copy Markdown
Contributor Author

simplified the diff here because the global libmagic functions are in fact thread-safe as long as you call them with a different cookie. so having the lock inside the Magic class is in fact correct.

@cclauss
Copy link
Copy Markdown
Contributor

cclauss commented Oct 17, 2025

Awesome!

Copy link
Copy Markdown
Owner

@ahupp ahupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ahupp ahupp merged commit 4043553 into ahupp:master May 11, 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.

3 participants