Skip to content

Conversation

@ddelange
Copy link
Contributor

@ddelangeddelange commented Oct 14, 2025

Supersedes #357, follow-up on 8a35137

@ddelangeddelange changed the title Free threadingMake top level libmagic functions thread-safe, add free-threaded python to CIOct 14, 2025
@ddelangeddelangeforce-pushed the free-threading branch 2 times, most recently from 74dfc08 to 79b6d26CompareOctober 14, 2025 11:38
Copy link
Contributor

@cclausscclauss 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.

@ddelangeddelange changed the title Make top level libmagic functions thread-safe, add free-threaded python to CIAdd free-threaded python to CI including multithreading testOct 17, 2025
@ddelange
Copy link
ContributorAuthor

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
Contributor

Awesome!

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.

2 participants

@ddelange@cclauss