Tag Archives: C++

That Python Is Strangling Me!

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 […]

Posted in General | Also tagged , , | Comments closed

And Now Something Completely Different …

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 […]

Posted in Tutorials | Also tagged , , | Comments closed

A Singleton Not Named Bridget

Ok. I haven’t posted anything in a (relative) long time. To tell the truth — there isn’t much to report.

Posted in Tutorials | Also tagged , | Comments closed