Skip to content

Some special characters cannot be typed in python shell on Windows #132913

Closed as duplicate of#132439
@tkreuzer

Description

@tkreuzer

Bug report

Bug description:

print(f"{x}") # Cannot type this properly
print(things[0]) # Cannot type this properly

The following characters cannot be entered in the python 3.13.x shell on Windows: {, }, [, ].
They are simply ignored (this is with a German keyboard layout on Windows 10, if that is relevant). If you paste code with them, they are missing in the paste. A work-around I randomly found: typing a [ followed by the character you intended, will give you that character.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

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