classification
Title: extend readline functionality in pdb
Type: feature request Stage: test needed
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: ajaksu2, jlgijsbers, mbrierst, meonkeys (4)
Priority: normal Keywords patch

Created on 2003-02-11 22:09 by mbrierst, last changed 2009-02-13 02:53 by benjamin.peterson.

Files
File name Uploaded Description Edit Remove
patchpdb2 mbrierst, 2003-02-11 22:15
Messages (4)
msg42825 - (view) Author: Michael Stone (mbrierst) Date: 2003-02-11 22:09
This patch allows readline completion of
global and local variables while running code
under pdb.

Currently completion only works
with the builtin pdb commands when in pdb.
This patch uses the default pdb completer (in cmd.Cmd)
to preserve the old completions, but adds completions
in the current pdb execution frame.

Patch is against current cvs.

Let me know what you think.
msg42826 - (view) Author: Johannes Gijsbers (jlgijsbers) Date: 2005-01-09 15:11
Logged In: YES 
user_id=469548

I like the idea, but the implementation is currently too
inclusive. It does completion the same for all commands,
even for those where that doesn't make sense, such as
enable, disable and quit. I'd accept a patch that used
'complete_*' functions for the individual commands where the
completion makes sense. Let me know if you're still
interested on working on this.
msg42827 - (view) Author: Adam Monsen (meonkeys) Date: 2005-10-11 17:25
Logged In: YES 
user_id=259388

jlgijsbers, do you mean that if a user typed

(Pdb) help d<TAB><TAB>

only help topics that started with 'd' would autocomplete?
And similarly for other pdb commands?
msg81855 - (view) Author: Michael Stone (mbrierst) Date: 2009-02-13 02:49
ajaksu2, I think you just changed the status of this to "test needed".  
I don't think a unit test for this functionality is possible if that's 
what you mean, as it is an interactive feature involving readline 
completion at the interactive prompt only.

It's been a long time since I posted this patch, and I don't really 
mind if you just close the issue.  There obviously hasn't been a lot of 
interest since 2003.
History
Date User Action Args
2009-02-13 02:53:39benjamin.petersonsetstatus: open -> closed
resolution: rejected
2009-02-13 02:49:41mbrierstsetnosy: + ajaksu2
messages: + msg81855
2009-02-13 02:35:03ajaksu2setstage: test needed
type: feature request
versions: + Python 2.7, - Python 2.3
2003-02-11 22:09:36mbrierstcreate