Auto-indent for pdb's multi-line mode · Issue #133349 · python/cpython · GitHub
Skip to content

Auto-indent for pdb's multi-line mode #133349

Description

@gaogaotiantian

Feature or enhancement

Proposal:

PyREPL has a nice auto-indent when working on a multiline code. We can't fully utilize that on pdb yet, but we can do something similar.

Basically we can achieve this:

(Pdb) def f():
...   <auto-indent>
...   <same-indent>

The only thing that we can't do as good as PyREPL is to intercept backspace and remove a full indent instead of a space - I think this would be a bit too complicated and nor worth it.

Overall I believe this gives users a better experience.

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

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

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions