Sharing objects between sub-interpreters

Nadav nadav at noip.com
Wed Jun 16 15:58:40 EDT 2004


Hi,

I could not find any info about this. I am writing a C 
application that embeds Python.

The application starts several python threads, each one in its
own sub-interpreter.

Is it possible to make them reference python objects defined
in the main interpreter?

Another question: Can I make all the threads run in the same
interpreter but without interfering with each other variables
(each one has its own namespace)?

Thanks,
Nadav




More information about the Python-list mailing list