How Many Times Can One Line Fail? ExceptionGroups & Except*: What They Are and How to [PyOhio 2023]

Опубликовано: 02 Ноябрь 2024
на канале: PyOhio
62
3

Talk by Andrew Kubera at PyOhio 2023:
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.

PyOhio talk listing: https://www.pyohio.org/2023/talks/how...