You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C source code for defining a python module in C-land
Why does this exist?
Been wanting to do this for quite some time, feels good to finally do it
I'll likely want to write some custom module in C for some odd use-case in the future, and python has been my primary lang for over a decade
I've enjoyed the idea of writing C for a long time, the longer I program, the more appealing C becomes. but python is always so much more convenient. This gives me a good reference for achieving the best of both worlds.
Compiling
python setup.py install
Testing / seeing it in action
python test.py
About
Example of writing a python module in pure C (no cython)