By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,441 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,441 IT Pros & Developers. It's quick & easy.

Independent interpreters in threads

P: n/a
I am looking for a way to have several threads, each of which running an
independent Python interpreter. Most of the work is done by the module
"code", but I also need to provide each interpreter with an independent set
of modules. I found a solution using name-mangling through the ihooks module,
but it is not quite clear which aspects of that module can be considered
documented, and I found that I had to update my code when moving from Python
2.2 to Python 2.3.

Is there any cleaner solution?

In case someone wonders what this is good for, the goal is to simulate a
parallel computing system on a single processor and in a single process space
for debugging purposes.

Konrad Hinsen | E-Mail: hi****
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron | Fax: +33-
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.