Support for free-threaded (no-gil) Python

Phil Thompson phil at riverbankcomputing.com
Wed Apr 2 10:42:17 BST 2025


On 02/04/2025 09:22, Ognyan Moore wrote:
> Hi Phil,
> 
> Do you plan on adding support for the free-threaded python that's 
> available
> in python 3.13?
> 
> Some context, in the free threaded python, the GIL is disabled.  The
> feature is in experimental support, but other projects such as numpy 
> and
> django already support it.
> 
> If there is an experimental build, I would be happy to help test.
> 
> Links for more context/reference:
> https://docs.python.org/3/howto/free-threading-python.html
> https://peps.python.org/pep-0703/

At some point. A lot of preparation is needed first, see...

https://github.com/Python-SIP/sip/issues/34

This work is needed anyway and is next on the TODO list.

Then there is...

https://github.com/Python-SIP/sip/issues/35

Personally I feel that proper support for multiple sub-interpreters will 
be more useful.

Phil


More information about the PyQt mailing list