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 believe another reply to you was to a book on Cython. I don't have a specific guide/tutorial recommendation beyond that.
1 reply 0 retweets 0 likes
I do not believe that I have to read a whole book. But I will continue my quest and bear this in mind. Thanks!
-
-
FYI: I just ran that example and it just worked so I'm extremely impressed. http://cffi.readthedocs.io/en/release-0.7/# …
1 reply 0 retweets 1 like - 4 more replies
New conversation -
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.