[IPython-dev] ipython/pydb integration - readline
Ville M. Vainio
vivainio at gmail.com
Sat Oct 28 05:10:45 EDT 2006
On 10/28/06, R. Bernstein <rocky at panix.com> wrote:
> > > Perhaps. And perhaps not. Because if the real solution is to:
> > > - save the command history file,
> > > - truncate it,
>
> I don't see this step. Shouldn't there be a readline.clear_history()
> after the save?
I don't think so, necessarily. More stuff in history == better, IMO.
Even if it's not strictly in the debugger domain.
> > > - call "run" (or post-mortem)
>
> I see the save/restore for "%run", but not for post-mortem(). And this
> may be a slightly more involved change, because what may be needed is
> not to invoke the the debugger's post-mortem() directly in the setup
> hook as is done now, but to invoke with a new wrapping routine which
> surrounds the post_mortem with the same steps used in %run.
Will do.
> And once this is done, then all of that other code in Debugger.py to
> define class Pdb and copy code from pdb can be removed/simplified!
> Basically the non Python 2.5 branch can look exactly like the Python
> 2.5 branch, and then we can drop the requirement that pydb get loaded
> only for version 2.5. Right?
Probably. Though here your guess is as good as mine, and Fernando will
probably want to chip in.
--
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-dev
mailing list