Skip to content

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

@injust

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 deletes words using punctuation as the boundary.

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions