Re:Meta pledges Three-Year sponsorship for Python if GIL rem...
by bjourne on Monday July 10, 2023 @02:25PM
(#36670800)
Yes, you are absolutely right, but that doesn't change the fact that many extensions are written as if innocuous function calls like PyList_SetItem won't context switch. It mostly works fine since custom destructors releasing the GIL are extremely rare.
[ Parent
| on HN ]
Re:Meta pledges Three-Year sponsorship for Python if GIL rem...
by js2 on Tuesday July 11, 2023 @09:10PM
(#36689276)
"Mostly works fine."
I dunno, I'd rather have a reliable bug than a heisenbug.
Any class with a __del__() method is going to release the GIL. That's not uncommon. My intuition is that threaded Python is rarer than classes with a __del__() method.