[Python-3000] threading, part 2

Nick Coghlan ncoghlan at gmail.com
Thu Aug 10 13:19:55 CEST 2006

Ivan Krstic wrote:
> Guido van Rossum wrote:
>> Fine with me then. In 2.5? 2.6? Or py3k? (This is the py3k list.)
> FWIW, we'll ship 2.5 on the OLPC (laptop.org) machines, and it looks
> like we'll need this. It'd be useful to have it directly in CPython, so
> people running our software outside the laptops don't have to fuss with
> an extension.

Given the time frame, I think you might be stuck with using ctypes to get at 
the functionality for Python 2.5. Now that Guido & Tim have mentioned it, I 
also vaguely recall portability to GIL-free implementations being one of the 
problems with the idea back when the C API function was added, so exposing 
this officially to Python code should probably wait until 2.6.

Peter Hansen worked out the necessary incantations to invoke it through ctypes 
back in 2004 [1]. The difference now is that "import ctypes" will work on a 
vanilla 2.5 installation.



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

More information about the Python-3000 mailing list