Skip to content

REPL auto-indentation is wrong with comments #122237

Closed

Description

@HarryLHW

Bug report

Bug description:

Currently, the REPL auto indentation is like this:
image

The correct one should be:
image

I am working on a PR to fix this.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

  1. HarryLHW commented on Jul 24, 2024

    @HarryLHW
    ContributorAuthor

    This is also incorrect when "#" happens to be the last non-whitespace character.
    image

  2. Wulian233 commented on Sep 15, 2024

    @Wulian233
    Contributor

    Another #124096

    2024-09-15 192801
  3. ambv commented on Oct 23, 2024

    @ambv
    Contributor

    That was fixed in GH-123196.

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

    topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions