[Python-ideas] tab completion in pdb

stephen emslie stephenemslie at gmail.com
Thu Feb 8 11:49:32 CET 2007


I think its worth forwarding a cautionary snippet from Rocky that
makes a lot of sense:

On 2/4/07, R. Bernstein <rocky at panix.com> wrote:
> The caveat though in all of these cases is that it can be difficult to
> get exactly what the valid completions are. For example if you know
> you need an number, do you really want to complete on all objects that
> are a numeric type plus the digits 0-9, "+", "-", and "("? And also
> throw in functions which return a number?  So in general, I think one
> has to back off a bit. And there are two ways to back off: one is
> allowing more possible completions (e.g. any object) and another by
> allowing less. I've been offering less. But I think really it's
> dictated by what "feels" right which will no doubt be different for
> different people. "Feeling right" could also be determined by how long
> completion takes is which may vary in different situations on
> different computers.
>
> Handling command completion feels more like engineering than art or
> science.
>



More information about the Python-ideas mailing list