GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — REPL auto-indentation is wrong with comments · Issue #122237 · python/cpython

REPL auto-indentation is wrong with comments #122237

New issue
Copy link
New issue
Copy link
Closed
Closed
REPL auto-indentation is wrong with comments#122237
Copy link
Labels
topic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@HarryLHW
HarryLHW
opened on Jul 24, 2024
Issue body actions

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

  • gh-122237: Fix REPL wrong auto-indentation with comments #122238
  • gh-122237: Fix repl auto indentation wrong with comments #122383

Activity

  1. HarryLHW
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 24, 2024
  2. HarryLHW commented on Jul 24, 2024

    @HarryLHW
    HarryLHW
    on Jul 24, 2024
    ContributorAuthor
    More actions

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

  3. hugovk
    added
    topic-replRelated to the interactive shellRelated to the interactive shell
    on Jul 24, 2024
  4. Wulian233 commented on Sep 15, 2024

    @Wulian233
    Wulian233
    on Sep 15, 2024
    Contributor
    More actions

    Another #124096

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

    @ambv
    ambv
    on Oct 23, 2024
    Contributor
    More actions

    That was fixed in GH-123196.

  6. ambv
    closed this as completedon Oct 23, 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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.