Spawning an interactive interpreter in a running python process?

Horace Blegg tkjthingone at gmail.com
Sat Dec 12 06:12:52 EST 2009


Better and better!

You know, I think I knew about those two, I just never connected the dots.
With a little fiddling, I think I can cobble together what I want. My
sincere thanks, sir/ma'am.

On Fri, Dec 11, 2009 at 9:46 PM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar>wrote:

> En Sat, 12 Dec 2009 02:11:27 -0300, Horace Blegg <tkjthingone at gmail.com>
> escribió:
>
>
>  I wonder if I could cook something up with PyRun_SimpleString("import pdb;
>> pdb.set_trace()"). This bears investigation!
>>
>
> pdb is a debugger, and provides a lot more than you're looking for, I
> presume.
> You may want to look at the code [1] and cmd [2] modules too.
>
> [1] http://docs.python.org/library/code.html
> [2] http://docs.python.org/library/cmd.html
>
>
> --
> Gabriel Genellina
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091212/f0929884/attachment.html>


More information about the Python-list mailing list