The Real Python Podcast cover image

Exploring the New Features of Python 3.11

The Real Python Podcast

00:00

Is There a Way to Generate Exception Groups?

The language has a new class of objects, except star. This works just like the except keyword in a tri-accept block, but you put a star after the word accept. And when you use this new syntax, you're able to catch an exception that's inside of an exception group. It gives you it's I find it personally way easier to read than the whole while processing your exception.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app