Calling C++ function from python script
Ravi Teja
webraviteja at gmail.com
Sat Jan 28 19:34:16 EST 2006
Right. They are complicated(Assuming that you are reading Python API
docs), especially if you have not done a substantial amount of C. You
spent 8 minutes trying to understand them. What did you expect? People
spend days sorting out the API issues.
If you are in a hurry, Pyrex is easiest approch to write Python
extensions. Try that instead.
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Another approach... create a dll and call it from ctypes. Nothing to
learn (assuming you understand C calling conventions)
More information about the Python-list
mailing list