You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ rustpython test.py
Traceback (most recent call last):
File "test.py", line 1, in<module>
eg: ExceptionGroup = ExceptionGroup("test", [Exception("test1"), Exception("test2")])
NameError: name 'ExceptionGroup' is not defined
I discovered this when using ruff. I first created this ruff issue but now I believe this repo is where the issue might belong 🙂
Python Documentation
ExceptionGroup is now a Python builtin (new in 3.11)
It definitely is, thanks for reporting! We just recently bumped to using 3.11 so some things aren't here yet. Adding these shouldn't be too difficult though, just adding the names alone (for now) would fix this issue.
Feature
This test file:
yields the following in CPython 3.11.1:
❯ python test.py test (2 sub-exceptions)
and this error in RustPython v0.2.0
I discovered this when using ruff. I first created this ruff issue but now I believe this repo is where the issue might belong 🙂
Python Documentation
ExceptionGroup is now a Python builtin (new in 3.11)
https://docs.python.org/3/library/exceptions.html#exception-groups
The text was updated successfully, but these errors were encountered: