Le Wednesday 13 August 2008 15:27:42 Hrvoje Nikšić, vous avez écrit :
> Given that ctypes doesn't work on a number of popular architectures,
> including x86_64 (the last time I looked), I'd hardly call that "better
> off".  :-(

I wrote a debugger based on ptrace using ctypes:
   http://fusil.hachoir.org/trac/wiki/python-ptrace

The debugger works well on:
 - Ubuntu Gutsy, i386
 - Debian Etch, x86_64 <= yes, it works well
 - Debian Etch, ppc32
 - FreeBSD 6.2 and 7.0, i386 <= yes, ctypes runs fine on FreeBSD too

(so Python 2.4 with ctypes the external ctypes module and Python 2.5 with 
included ctypes)

I have no other computer to test other CPUs :)

ctypes allows to write code working on CPython 2.4, 2.5, 2.6 and 3.0 (with 
2to3), but also on PyPy! Jython plans also to support ctypes.

So, please, retry ctypes ;-)

-- 
Victor Stinner aka haypo
http://www.haypocalc.com/blog/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to