Python Forum

Full Version: functions in C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
people can write functions for Python in C. is this different than, or the same as, using the ctypes module? if different, is it easy to made a module with a bunch of functions, in C without the caller having to do anything different in the call. what about classes and generators?

the reason to ask the above question is to understand the scale of potential use for ctypes as i read about it (started on it today after it being on my to do list for a few months).