I’ve given up on implementing Python classes using C API since I couldn’t get instancing in the C API to work properly. No helpfull error messages, either segfault or “wrong arguments in Objectsclassobjects.cpp line 504″, no helpfull documentation, and me to tired to even type gdb. I’m going back to write a simple module and […]
Tag Archives: C++
I finally figured out how to implement classes in Python using C API — the right way. Namely as a new type using the PyTypeObject complete with get and set attribute calls and plain members. But I tought my previous hack for building a class at runtime is still slim enough to share, especially if […]
Ok. I haven’t posted anything in a (relative) long time. To tell the truth — there isn’t much to report.