C extensions
C extensions
Posted May 16, 2011 2:54 UTC (Mon) by njs (subscriber, #40338)In reply to: C extensions by kingdon
Parent article: A brief experiment with PyPy
Posted May 16, 2011 18:33 UTC (Mon)
by foom (subscriber, #14868)
[Link] (1 responses)
Redefining all the structs/#defines/etc manually in ctypes is a great way to make a completely unportable library wrapper.
Posted May 16, 2011 18:54 UTC (Mon)
by njs (subscriber, #40338)
[Link]
(Actually, I think most of the times I've used ctypes were to commit horrors by poking at the innards of the interpreter -- casting id(myobj) to a pointer and then screwing with C-level fields. It's not easy to guarantee portability between different implementations of a language!)
C extensions
C extensions