This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stephenemslie
Recipients
Date 2007-02-02.16:30:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Thanks for your comments, and thanks for pointing out pydb

I agree that debugger commands should also belong in the completion namespace. I'll have a look at adding that to the patch.

> The second problem I have is that completion is not all that sensitive to the preceding context.

The idea is that the namespace that is available to the completer at any time will be the same as the local and global identifiers and keywords that are available in the same scope. I think it makes sense to complete everything that is valid in the current scope because that makes for a more useful introspection tool. Thats what frame.f_locals and frame.f_globals are about (if foo and bar are available in the current scope, and you step into a function outside of that scope then foo and bar will no longer be available in the completer's namespace). I notice this is also used in pydb's complete method under certain circumstances.

I'll definitely take a closer look at pydb. I probably wouldn't have needed to write this if I'd known about it before :)

History
Date User Action Args
2007-08-23 15:56:20adminlinkissue1641544 messages
2007-08-23 15:56:20admincreate