Skip to content

Enhance no GIL / free threaded support #240

@benoit74

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions