Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Gregory, On 07/12/13 08:39, Gregory Ewing wrote: > Garthy wrote: >> To allow each script to run in its own environment, with minimal >> chance of inadvertent interaction between the environments, whilst >> allowing each script the ability to stall on conditions that will be >> later met by an

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Gregory, On 07/12/13 08:53, Gregory Ewing wrote: > Garthy wrote: >> The bare minimum would be protection against inadvertent interaction. >> Better yet would be a setup that made such interaction annoyingly >> difficult, and the ideal would be where it was impossible to interfere. > > To give

Re: Embedding multiple interpreters

2013-12-06 Thread Gregory Ewing
Garthy wrote: The bare minimum would be protection against inadvertent interaction. Better yet would be a setup that made such interaction annoyingly difficult, and the ideal would be where it was impossible to interfere. To give you an idea of the kind of interference that's possible, consi

Re: Embedding multiple interpreters

2013-12-06 Thread Gregory Ewing
Garthy wrote: To allow each script to run in its own environment, with minimal chance of inadvertent interaction between the environments, whilst allowing each script the ability to stall on conditions that will be later met by another thread supplying the information, and to fit in with existi

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Tim, On 06/12/13 20:47, Tim Golden wrote: On 06/12/2013 09:27, Chris Angelico wrote: On Fri, Dec 6, 2013 at 7:21 PM, Garthy wrote: PS. Apologies if any of these messages come through more than once. Most lists that I've posted to set reply-to meaning a normal reply can be used, but pytho

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Chris, On 06/12/13 22:27, Chris Angelico wrote: > On Fri, Dec 6, 2013 at 8:35 PM, Garthy > wrote: >> I think the ideal is completely sandboxed, but it's something that I >> understand I may need to make compromises on. The bare minimum would be >> protection against inadvertent interaction.

Re: Embedding multiple interpreters

2013-12-06 Thread Chris Angelico
On Fri, Dec 6, 2013 at 8:35 PM, Garthy wrote: > I think the ideal is completely sandboxed, but it's something that I > understand I may need to make compromises on. The bare minimum would be > protection against inadvertent interaction. Better yet would be a setup that > made such interaction anno

Re: Embedding multiple interpreters

2013-12-06 Thread Tim Golden
On 06/12/2013 09:27, Chris Angelico wrote: > On Fri, Dec 6, 2013 at 7:21 PM, Garthy > wrote: >> PS. Apologies if any of these messages come through more than once. Most >> lists that I've posted to set reply-to meaning a normal reply can be used, >> but python-list does not seem to. The replies I

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Chris, On 06/12/13 19:57, Chris Angelico wrote: > On Fri, Dec 6, 2013 at 7:21 PM, Garthy > wrote: >> PS. Apologies if any of these messages come through more than once. Most >> lists that I've posted to set reply-to meaning a normal reply can be used, >> but python-list does not seem to.

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Chris, On 06/12/13 19:03, Chris Angelico wrote: > On Fri, Dec 6, 2013 at 6:59 PM, Garthy > wrote: >> Hi Chris (and Michael), > > Hehe. People often say that to me IRL, addressing me and my brother. > But he isn't on python-list, so you clearly mean Michael Torrie, yet > my brain still autom

Re: Embedding multiple interpreters

2013-12-06 Thread Chris Angelico
On Fri, Dec 6, 2013 at 7:21 PM, Garthy wrote: > PS. Apologies if any of these messages come through more than once. Most > lists that I've posted to set reply-to meaning a normal reply can be used, > but python-list does not seem to. The replies I have sent manually to > python-list@python.org ins

Re: Embedding multiple interpreters

2013-12-06 Thread Chris Angelico
On Fri, Dec 6, 2013 at 6:59 PM, Garthy wrote: > Hi Chris (and Michael), Hehe. People often say that to me IRL, addressing me and my brother. But he isn't on python-list, so you clearly mean Michael Torrie, yet my brain still automatically thought you were addressing Michael Angelico :) > To allo

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Gregory, On 06/12/13 17:28, Gregory Ewing wrote: > Garthy wrote: >> I am running into problems when using multiple interpreters [1] and I >> am presently trying to track down these issues. Can anyone familiar >> with the process of embedding multiple interprete

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi all, A small update here: On 06/12/13 13:04, Garthy wrote: > [1] It presently crashes in Py_EndInterpreter() after running through a > series of tests during the shutdown of the 32nd interpreter I create. I > don't know if this is significant, but the tests pass for the first 31 > interprete

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Chris (and Michael), On 06/12/13 15:46, Michael Torrie wrote: > On 12/05/2013 07:34 PM, Garthy wrote: >> - My fallback if I can't do this is to implement each instance in a >> dedicated *process* rather than per-thread. However, there is a >> significant cost to doing this that I would rather

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi all, A small update here: On 06/12/13 13:04, Garthy wrote: > [1] It presently crashes in Py_EndInterpreter() after running through a > series of tests during the shutdown of the 32nd interpreter I create. I > don't know if this is significant, but the tests pass for the first 31 > interpreter

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Chris (and Michael), On 06/12/13 15:51, Chris Angelico wrote: On Fri, Dec 6, 2013 at 4:16 PM, Michael Torrie wrote: On 12/05/2013 07:34 PM, Garthy wrote: - My fallback if I can't do this is to implement each instance in a dedicated *process* rather than per-thread. However, there is a sig

Re: Embedding multiple interpreters

2013-12-06 Thread Garthy
Hi Gregory, On 06/12/13 17:28, Gregory Ewing wrote: > Garthy wrote: >> I am running into problems when using multiple interpreters [1] and I >> am presently trying to track down these issues. Can anyone familiar >> with the process of embedding multiple interprete

Re: Embedding multiple interpreters

2013-12-05 Thread Gregory Ewing
Garthy wrote: I am running into problems when using multiple interpreters [1] and I am presently trying to track down these issues. Can anyone familiar with the process of embedding multiple interpreters have a skim of the details below and let me know of any obvious problems? As far as I

Re: Embedding multiple interpreters

2013-12-05 Thread Chris Angelico
On Fri, Dec 6, 2013 at 4:16 PM, Michael Torrie wrote: > On 12/05/2013 07:34 PM, Garthy wrote: >> - My fallback if I can't do this is to implement each instance in a >> dedicated *process* rather than per-thread. However, there is a >> significant cost to doing this that I would rather not incur. >

Re: Embedding multiple interpreters

2013-12-05 Thread Michael Torrie
On 12/05/2013 07:34 PM, Garthy wrote: > - My fallback if I can't do this is to implement each instance in a > dedicated *process* rather than per-thread. However, there is a > significant cost to doing this that I would rather not incur. What cost is this? Are you speaking of cost in terms of wh

Embedding multiple interpreters

2013-12-05 Thread Garthy
] and I am presently trying to track down these issues. Can anyone familiar with the process of embedding multiple interpreters have a skim of the details below and let me know of any obvious problems? If I can get the essentials right, then presumably it's just a matter of my tracking