Re: [Python-Dev] CPython and C++ object GC

2009-03-30 Thread Eric Smith
Nick Coghlan wrote: Csaba Balazs wrote: Hello Everybody, I would like to use a C++ gui library with the following (simplified) interface in Python. This is a question for python-list/comp.lang.python (i.e. development *using* Python, including the C API), not python-dev (which is for developm

Re: [Python-Dev] CPython and C++ object GC

2009-03-30 Thread Nick Coghlan
Csaba Balazs wrote: > Hello Everybody, > > I would like to use a C++ gui library with the following (simplified) > interface > in Python. This is a question for python-list/comp.lang.python (i.e. development *using* Python, including the C API), not python-dev (which is for development of the la

[Python-Dev] CPython and C++ object GC

2009-03-30 Thread Csaba Balazs
Hello Everybody, I would like to use a C++ gui library with the following (simplified) interface in Python. #include class Gui; class GuiObject { public: GuiObject(Gui *Gui) {printf("creating GuiObject(gui: %X)\n", Gui);} ~GuiObject() {printf("deleting GuiObject\n");} v