-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Description
Calling sys.exception() in GraalPython 24.1.1 does not work.
This is annoying as the Python docs say it was implemented in Python 3.11 (https://docs.python.org/3/library/sys.html#sys.exception)
Very easily reproduced:
`import sys
try:
raise NotImplementedError("oops")
except:
t, e, tb = sys.exc_info()
print(e == sys.exception())`
Crashes out with:
`Traceback (most recent call last):
File "", line 2, in
NotImplementedError: oops
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 5, in
AttributeError: module 'sys' has no attribute 'exception'`
Metadata
Metadata
Assignees
Labels
No labels