CPython PR merged yesterday: Allow disabling the GIL with `PYTHON_GIL=0` or `-X gil=0` by swtaarrs · Pull Request #116338 (part of PEP 703)

https://programming.dev/post/11406534

CPython PR merged yesterday: Allow disabling the GIL with `PYTHON_GIL=0` or `-X gil=0` by swtaarrs · Pull Request #116338 (part of PEP 703) - programming.dev

cross-posted from: https://lemmy.ml/post/13079957 [https://lemmy.ml/post/13079957] > https://peps.python.org/pep-0703/ [https://peps.python.org/pep-0703/]

Threading intensifies

I’m excited about this, even if it is just baby steps. It’s been one of my very few complaints about python, having spent two decades using it.

I’m hoping that pyside and QThreads can be made to work with noGIL. That would be super sweet. :)

Fuck Gil, he’s always slowing down my Python programs.
Well Ol Gil’s gonna surprise you. I’ll make something of myself, you’ll see!

Note the caveat:

With PYTHON_GIL=0 set, I spot-checked a few tests and small programs that don’t use threads. They all seem to run fine, and very basic threaded programs work, sometimes. Trying to run the full test suite crashes pretty quickly, in test_asyncio