Anybody know of any good guides for writing C extensions for #Python?
I have a couple already but the more the merrier. Please RT! 
-
-
In my experience, it's much easier to use Cython to make a thin layer to interface with C code than to make a classic C extension.
1 reply 0 retweets 0 likes -
Replying to @michaelhoffman @pjacock
I already have written the code in C. Or do you mean it's easier regardless?
2 replies 0 retweets 0 likes -
Most of the guides I have read are using Cython anyway — I probably just aren't experienced enough to understand the nuanced of what you are
1 reply 0 retweets 0 likes -
touching on... hence why asking for a guide.
1 reply 0 retweets 0 likes -
If you've already written c_foo() in C that does what you want, in Cython it's as easy as cdef foo(): c_foo()
1 reply 0 retweets 0 likes -
Replying to @michaelhoffman @pjacock
Do you have a guide? I have never used Cython.
2 replies 0 retweets 0 likes
I have all the Python code written and all the C code written.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.