In Python 3.13 REPL, print() adds extra indentation when invoked from a tkinter event handler #135045
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
3.15
new features, bugs and security fixes
topic-repl
Related to the interactive shell
topic-tkinter
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Here is an interactive python 3.13 session on macOS 15.5 using the python.org distribution:
The words "Click" should not be indented. No spaces are being printed. The REPL behaves as if the text is ended with a newline but not with the implicit carriage return.
I expect the print command to behave the same way as it does here:
CPython versions tested on:
3.13
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: