Skip to content

ctrl-w deletes words with punctuation instead of whitespace boundary #146044

Description

@injust

Bug report

Bug description:

I am used to ctrl-w deleting entire words, using whitespace as the boundary. Based on https://github.com/python/cpython/blob/3.14/Lib/_pyrepl/reader.py#L81, I think the Python REPL is supposed to do that?

However, ctrl-w currently deletes words using punctuation+whitespace as the boundary.

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs

Activity

  1. added
    type-bug
    on Mar 17, 2026
  2. changed the title [-]ctrl-w deletes words delimited by punctuation instead of whitespace[/-] [+]ctrl-w deletes words with punctuation instead of whitespace boundary[/+] on Mar 17, 2026
  3. deleted a comment from FocusMode-coder on Mar 17, 2026
  4. added
    stdlib
    topic-repl
    on Mar 20, 2026
  5. picnixz commented on Mar 20, 2026

    @picnixz
  6. added
    pending
    triaged
    and removed
    pending
    on Mar 20, 2026
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

    stdlibtopic-repltriagedtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions