Attaching to a Python Interpreter a la Tcl
Stephen Thorne
stephen.thorne at gmail.com
Wed Feb 23 20:58:56 EST 2005
On 23 Feb 2005 02:37:48 -0800, DE <devrim.erdem at gmail.com> wrote:
> Hello,
>
> Some long time ago, I used to use Tcl/Tk. I had an tcl embedded into my
> app.
>
> The coolest thing was however, I was able to attach to the interpreter
> (built in to my app) via a tcl shell in which I could type in regular
> tcl code which would be interpreted by the interpreter of my
> application. Naturally, it was possible to call tcl functions of my
> applications.
>
> Some kind of rapid RPC.
>
> Is this also possible with python ?
Yes, using something like twisted's 'Manhole', which allows you to
execute code in the server process.
It may require twisted-ising your application however.
Stephen
More information about the Python-list
mailing list