How Many Times Can One Line Fail? ExceptionGroups & Except*: What They Are and How to Use Them
Short Talk at 2:15 pm
Async programming can make complex things easy, but at the same time be hard to get 100% correct; particularly when it comes to exceptions and handling states outside the "happy path". Python has been gaining tools to more easily handle the failure cases, notably in 3.11 a new exception handling syntax: except*
.
Don't know what this does or how to read it? This talk is for you.
This talk will briefly discuss asyncio and how async code differs from normal functions, TaskGroups
and when to use them, and finally ExceptionGroups
and the try: except*:
syntax.