Q42: What are ExceptionGroups and the 'except*' syntax in Python 3.11+?

ExceptionGroup allows raising multiple concurrent exceptions simultaneously (common in asyncio.TaskGroup). The except* syntax enables matching and handling individual exception subtypes within the group concurrently.

Key Takeaways
  • Handles multiple concurrent exception traces.
  • except* ExceptionType matches nested exceptions within groups.
Knowledge Check

Which construct introduced ExceptionGroup handling for concurrent asyncio task groups?