Re: [Python-Dev] Sharing between multiple interpreters and restricted mode

2006-01-10 Thread Jeremy Maxfield
Hi Gabriel, Apart from the problem of sharing code between interpreters (sounds pretty dangerous to me) there's a bug in 2.4.1 (and 2.3.5 for that matter) that causes problems with multiple interpreters in certain siutations (esp. threads) which results in this 'restricted mode' message - I encoun

Re: [Python-Dev] Sharing between multiple interpreters and restricted mode

2006-01-04 Thread Guido van Rossum
This is more a question for c.l.py. My own suggestion is to go back to a single shared interpreter; what's the value of separate interpreters if you're sharing objects anyway? Sharing Python code between interpreters is definitely not supported. If you insist on separate interpreters, an alternativ

[Python-Dev] Sharing between multiple interpreters and restricted mode

2006-01-04 Thread Gabriel Becedillas
Hi, At the company I work for we've embedded Python 2.4.1 in a C++ application. We execute multiple scripts concurrenlty, each one in its own interpreter (created using Py_NewInterpreter()). We are sharing a certain instance between interpreters because its to expensive to instantiate that class