I have recently been beefing up support of the python trepan debugger 
<https://pypi.python.org/pypi?name=trepan&:action=display> to go into both 
a python and ipython shell. In doing that I came across bpython. 

How does one embed a bpython shell from inside another Python program such 
as a debugger? 

Here are some issues that come up:


   1. Setting evaluation (locals, globals) to be in the context of the 
   debugged program
   2. Saving/restoring command history
   3. Saving/restoring command completion functions

To get a sense of how this is done for ipython and python 
see 
https://github.com/rocky/python2-trepan/blob/master/trepan/processor/command/ipython.py
 
and 
https://github.com/rocky/python2-trepan/blob/master/trepan/processor/command/python.py

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bpython.
For more options, visit https://groups.google.com/d/optout.

Reply via email to