Bug report
Bug description:
I use Python in Windows 1O.
If I enter the command
w = tkinter.Tk()
in the command line interpreter, the interpreter starts behaving strangely.
Commands entered directly from the keyboard
and commands pasted from the clipboard and not ending with a comment,
it continues to process as expected.
However, whenever I paste from the clipboard a command that ends with a line comment,
the interpreter crashes, and with it the entire command line window.
However, the window opened in tkinter remains open
and closes only when its close button is pressed.
CPython versions tested on:
3.10, 3.11, 3.12
Operating systems tested on:
Windows