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.
-
-
-
I already have written the code in C. Or do you mean it's easier regardless?
-
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
-
touching on... hence why asking for a guide.
-
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()
-
Do you have a guide? I have never used Cython.
-
I have all the Python code written and all the C code written.
End of conversation
New conversation -
-
-
https://docs.python.org/3.6/extending/extending.html … The official Python docs are the best resource I've found for this. Good luck!
-
Thanks — will use!
End of conversation
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.
I have a couple already but the more the merrier. Please RT! 