Multiple Interpreters In a Single Thread

Frithiof Andreas Jensen frithiof.jensen at die_spammer_die.ericsson.com
Wed Sep 29 07:07:28 EDT 2004


"bmatt" <bsmatt at gmail.com> wrote in message
news:efd29696.0409230652.8c6f748 at posting.google.com...
> I am trying to support multiple interpreter instances within a single
> main application thread.

I think it sounds tricky and doomed to endless debugging - given that one
does not really have full control over the interpreter, not many people "go
there" and therefore there may lurk undocumented implementation & machine
detail that change suddently ...

> Any information would be appreciated.

I *guess* that what you want to do is to be able to attach/detach
functionality to an application so that 'the user' can build/customise his
own custom tool from a set of available building-blocks and some runtime
configuration tool?

If you base your framework on Pyro and design a protocol for registration,
location and inter-connection of Services, I think your life might be
simpler; With Pyro your independent Python Thread will be in separate
applications, but the Pyro interface makes all objects appear local to the
application using them. I like it.

http://pyro.sourceforge.net/





More information about the Python-list mailing list