[PyKDE] PyQt + multiple Interpreters

Christoph Wiedemann wiedeman at gmx.net
Thu Sep 16 14:01:23 BST 2004


Hi all,

i think i found a bug in sipRegisterModule(...). I'm using Sip 3.8. I have a
program which uses embedded python. It allocates several independent
interpreters with Py_NewInterpreter.

Now, if more than one interpreter imports the qt module, the program hangs
in an endless loop inside siplib.c/findClass(...). This is because the
modulesList->md_next is pointing to modulesList.

I suggest to change sipRegisterModule to insert the module to be registered
only, if it isn't already in modulesList.

Christoph




More information about the PyQt mailing list