Moving code from C to Python (Maintainability and robustness)


Spent the evening after work on trying to track down why there's a memory leak in the pointer-management functions in PyOpenGL. Problem is, the code there is this grotty low-level stuff that winds up re-creating the reference-counting mechanism in Python just to track whether anything is referencing a pointer.

Decided to rework it as a Python module to be accessed from the C code. That works fairly well, but it requires that I restructure a lot of the SWIG wrapper stuff... just got started on that when I realised it was 3:40 in the morning. Oh well, something to play with on the weekend.

No 2.0.2 release yet.

Comments

Comments are closed.

Pingbacks

Pingbacks are closed.