-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-IDLEtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
In IDLE, I raised three different exceptions. The output is:
>>>raise Exception("123\n456")
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
raise Exception("123\n456")
Exception: 123
456
>>>raise NameError("123\n456")
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
raise NameError("123\n456")
456
>>>raise OSError("123\n456")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
raise OSError("123\n456")
OSError: 123
456
Only NameError
cannot show the Exception Type if the text has two or more lines.
In shell the action is same with other exception.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-IDLEtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
No status