Skip to content

_pyrepl: Fix raw buffer merge when coalescing pending input events #146589

Description

@cuiweixie

Problem

In UnixConsole.getpending() (Lib/_pyrepl/unix_console.py), when draining the event queue and merging consecutive events into e, the code appends to e.raw with e.raw += e.raw instead of appending the second event's payload. That duplicates the first chunk instead of concatenating e2.raw.

Proposed fix

Use e.raw += e2.raw to match e.data += e2.data.

Linked PRs

Activity

  1. added a commit that references this issue on Mar 29, 2026
  2. cuiweixie commented on Mar 29, 2026

    @cuiweixie
    ContributorAuthor
  3. picnixz commented on Mar 29, 2026

    @picnixz
    Member

    This is a dupe of #145886. FTR, please don't use AI to find issues without checking them.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions