Gilguard: Catch the import that silently re-enables GIL on free-threaded Python
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Gilguard is a Python package by Michael Kennedy that makes free-threaded CPython builds fail loudly when an import silently re-enables the GIL. Normally CPython only prints a RuntimeWarning and keeps running with threads serialized again, so throughput drops with no clear cause.