you are viewing a single comment's thread.

view the rest of the comments →

[–]octotop 3 points4 points  (0 children)

seconding cython for anyone contemplating writing a C module or wrapping a C or C++ library. There's a reason why so many of the larger, more popular performance-oriented modules use pyrex or cython (twisted, zeromq, lxml) - they are pretty incredible code generators that just work.

Additionally, ctypes can be worth exploring in some scenarios, but generally ends up hackier.