MENU

Fun & Interesting

Are exception groups Python's MOST UNDERUSED feature?

Carberra 3,047 lượt xem 1 week ago
Video Not Working? Fix It Now

Despite releasing all the way back in Python 3.11, exception groups are scarcely used. Some of this will be due to authors maintaning compatibility with older Python versions, but there are some great uses of this, especially when validating inputs or managing multiple things at the same time.

In this video, we'll learn how to create and handle exception groups, and how you can use them you can't use Python 3.11!

00:00 - Intro
01:01 - Creating exception groups
03:26 - Nesting exception groups
05:11 - Handling exception groups using the normal except
06:34 - Handling using the except* syntax
12:10 - A real-world example
17:12 - Outro



~ Hotlinks ~
Join the Discord ► https://discord.gg/5vVgQpK
Check out the GitHub ► https://github.com/Carberra

~ Setup ~
Visual Studio Code ► https://youtu.be/PBQspYkkksU
Terminal ► https://youtu.be/4RuGK3w6Mbs
Desk/recording gear ► https://kit.co/Carberra
PC build ► https://uk.pcpartpicker.com/list/TmzGYN

~ Affiliations ~
ChatLLM and CodeLLM ► https://chatllm.abacus.ai/phxDqZSGjZ
Codecrafters (40% off any plan) ► https://app.codecrafters.io/join?via=parafoxia
Keeper Password Manager (30% off your first year) ► https://keeper.io/r/EX4FB1C

#python #coding #howto

Comment