[Python-Dev] The endless GIL debate: why not remove thread support instead?

Nick Coghlan ncoghlan at gmail.com
Fri Dec 12 22:34:01 CET 2008


Thomas Heller wrote:
> Christian Heimes schrieb:
>> Nick Coghlan schrieb:
>>> Actually, I believe 3.0 already took a big step towards allowing this by
>>> changing the way modules are initialised.
>> You are believing correctly. Martin has designed and implemented a
>> nicely working API to store extension module data per interpreter state.
>>  For now interpreter states are used for sub interpreters only.
>>
>> http://www.python.org/dev/peps/pep-3121/
> 
> But the extension modules still have to changed to use this mechanism, right?

Yep, but at least it's *possible* now. With 2.x, it isn't possible for
an extension module to support subinterpreters properly, even if they
want to.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-Dev mailing list