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. Cheers, Nick. [1] http://groups.google.com/group/comp.lang.python/msg/d310502f7c7133a9 -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
