Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
Posted May 16, 2011 2:54 UTC (Mon) by njs (guest, #40338)
Posted May 16, 2011 18:33 UTC (Mon) by foom (subscriber, #14868)
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 (guest, #40338)
(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!)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds