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
{{ message }}
Repository navigation
NameError: name 'ExceptionGroup' is not defined #4563
❯ 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.
Activity
DimitrisJim commentedon Feb 24, 2023
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.
arihant2math commentedon Apr 23, 2025
Exception groups have been added now.
youknowone commentedon Apr 23, 2025
#5254 added it