Asyncio Evolved: Enhanced Exception Handling with Python 3.11 TaskGroups|Junya Fukuda|PyCon TW 2023

Published: 22 November 2023
on channel: PyCon Taiwan
180
3

PyCon Taiwan 2023|Talk 演講|Day 1, R0 13:05–13:35

🪄 說明 Description 🪄
With the release of Python 3.11 in October 2022, PEP 654 "Exception Groups and except" was accepted, and asyncio.TaskGroup() was added. This enhancement of exception and cancellation handling has allowed asyncio to evolve more flexibly, addressing the existing issues with asyncio APIs, such as insufficient cancellation and exception handling in asyncio.gather.

In this talk, I would like to discuss the problems of existing asyncio APIs and how the newly introduced asyncio.TaskGroup() solves these issues. Attendees will learn about the improved way of handling exceptions and cancellations using asyncio.TaskGroup(), enabling them to write more efficient and robust asynchronous code with Python 3.11.



🚀 講者介紹 About Speaker - Junya Fukuda 🚀
Develops "LOVOT", a family-like robot that promotes the ability to love, at GROOVE X, Inc. He has spoken at PyCon JP, DjangoCongress JP, EuroPython, and other events. As a community activity, he participates in the management of GeekLab Nagano. Co-author of "Python Practical Recipes (2022 Gijutsu Hyoron Co., Ltd.)". Translation of "Expert Python Programming - Fourth Edition". Likes beer, camping, and asyncio.


Follow “PyCon Taiwan”
⭐️ Official Website: https://tw.pycon.org
⭐️ Facebook:   / pycontw  
⭐️ Instagram:   / pycontw  
⭐️ Twitter:   / pycontw  
⭐️ LinkedIn:   / pycontw  
⭐️ Blogger: https://conf.python.tw/


Watch video Asyncio Evolved: Enhanced Exception Handling with Python 3.11 TaskGroups|Junya Fukuda|PyCon TW 2023 online without registration, duration hours minute second in high quality. This video was added by user PyCon Taiwan 22 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 180 once and liked it 3 people.