Skip to content

Enhance no GIL / free threaded support #240

Closed

Description

@benoit74

CPython now has free-threaded builds since 3.13: https://docs.python.org/3/howto/free-threading-python.html

In #237 (to be released as 3.8.0), we've fixed tests and documentation regarding the fact that python-libzim requires the GIL ATM.

We need to investigate if we really need the GIL, because multiple methods are already marked as nogil, especially important ones around the creation of the ZIM (where we do expect the python-libzim user to handle thread-safety when required).

Aim would be to mark the module as free-threaded. I don't know yet how to do this with Cython (if possible at all).

Activity

  1. added
    enhancement
    on Nov 6, 2025
  2. removed
    enhancement
    on Oct 1, 2026
  3. added 2 commits that reference this issue on Oct 21, 2026
    7d38b29
    b67fa64
  4. added 3 commits that reference this issue on Oct 28, 2026
    7d4d90b
    81117e6
    ac70fdd
  5. added this to the 4.0.0 milestone on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions