Skip to content

Make pdb completion similar to repl completion #112948

Closed

Description

@gaogaotiantian

Feature or enhancement

Proposal:

Currently there are a couple of issues with pdb's completion:

  1. It does not know about built-in functions like repl. So pri\t won't complete to print.
  2. Disabling of completion in multi-line mode is a bit too strong - the user should be able to complete on expressions when they need. Also it does not work with libedit.
  3. If you are typing a statement/expression, rather than using a command like p, pdb will lose the ability to complete expressions.

We have rlcompleter and we should utilize that to make pdb's completion better - the code is already there and it has fixed a couple of corner issues.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added a commit that references this issue on Mar 25, 2024
  2. gaogaotiantian commented on Mar 27, 2024

    @gaogaotiantian
    MemberAuthor

    Done.

  3. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions