-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in C and python traceback printers #85203
Comments
I belive the python traceback module was designed to produce the same output as the internal exception printer (sys.__excepthook__), but this is not the case when the exception's __str__ raises an exception. Given an exception of the following class: Internal printer output:
Traceback (most recent call last):
File "inconsistent.py", line 6, in <module>
raise E()
__main__.E: <exception str() failed>
traceback.print_exc output:
Traceback (most recent call last):
File "inconsistent.py", line 6, in <module>
raise E()
E: <unprintable E object> |
JDevlieghere
added a commit
to llvm/llvm-project
that referenced
this issue
Mar 15, 2023
PythonDataObjectsTest.TestExceptions started failing because the output of the python traceback printers is now consistent between python and cpython [1]. Work around the issue by supporting both variants. Thanks to Ismail for identifying the root cause. [1] python/cpython#85203
CarlosAlbertoEnciso
pushed a commit
to SNSystems/llvm-debuginfo-analyzer
that referenced
this issue
Mar 17, 2023
PythonDataObjectsTest.TestExceptions started failing because the output of the python traceback printers is now consistent between python and cpython [1]. Work around the issue by supporting both variants. Thanks to Ismail for identifying the root cause. [1] python/cpython#85203
agozillon
pushed a commit
to ROCm-Developer-Tools/llvm-project
that referenced
this issue
Mar 17, 2023
PythonDataObjectsTest.TestExceptions started failing because the output of the python traceback printers is now consistent between python and cpython [1]. Work around the issue by supporting both variants. Thanks to Ismail for identifying the root cause. [1] python/cpython#85203
JDevlieghere
added a commit
to swiftlang/llvm-project
that referenced
this issue
Apr 27, 2023
PythonDataObjectsTest.TestExceptions started failing because the output of the python traceback printers is now consistent between python and cpython [1]. Work around the issue by supporting both variants. Thanks to Ismail for identifying the root cause. [1] python/cpython#85203 (cherry picked from commit 9dbce77)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: