Python Forum

Full Version: rewriting my C library for Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to rewrite my C library so that functions that make sense for use in Python that are not easy to use directly via the ctypes module are reorganixed so they are easier to call in Python via the ctypes module. this will likely mean a change of argument types and/or return type. in some cases i might make a duplicate and modify the duplicate where i feel the changes are note good for C. or maybe i should just make a duplicate library, where the 2nd one is for Python use (which will probably be smaller). my library implements a lot of stuff as macros. counting macros, there are over 2000 "functions" in my library.