Keyboard problems

Hi,

I’m new here and didn’t want to open a thread for a ‘stupid’ problem.

When I’m in the shell I can’t use “]” but “[”. When I first use “[” and then “]” it works fine. I can’t use “}” either.

I unistalled python and installed it again.

Something is wrong here, because I can use “]” everywhere except the shell.
Can you help me?

Most propably you are on Windows?

Depending on whether you are using the legacy console or the new Windows terminal, and depending on the Python version you are using you might be facing New REPL on Windows swallows characters entered via AltGr · Issue #132439 · python/cpython · GitHub or New REPL on Windows exits when accented character is pasted/typed · Issue #131878 · python/cpython · GitHub.

Both are fixed in 3.14 b1 and backported to 3.13, so will be part of the upcoming 3.13.4.

In case you cannot use the beta, you can disable the new REPL using the environment variable PYTHON_BASIC_REPL=1.

Hi there,

thank you very much!

Greetings

Omar Anwar