Skip to content

After opening a tkinter window, command line interpreter crashes after getting a command from the clipboard ending with a comment #116264

@rudyment

Description

@rudyment

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions