filmov
tv
A Closer Look At Structural Pattern Matching // New In Python 3.10!
Показать описание
In this video, I show an example of structural pattern matching, a pretty powerful feature that's part of Python 3.10. There are a couple of really nice things you can do with this, and although it resembles the traditional switch statement, it goes far beyond what the 'wicked switch' can do.
🎓 Courses:
👀 Channel code reviewer board:
- Ryan Laursen
- Sybren A. Stüvel
🔖 Chapters:
0:00 Intro
1:02 Explaining the example
1:35 Simple pattern match example
3:37 A more elaborate match example
7:49 Match with conditions
9:30 Match with objects
14:42 Caveats of using structural pattern matching
16:11 Other Python 3.10 features & final thoughts
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
🎓 Courses:
👀 Channel code reviewer board:
- Ryan Laursen
- Sybren A. Stüvel
🔖 Chapters:
0:00 Intro
1:02 Explaining the example
1:35 Simple pattern match example
3:37 A more elaborate match example
7:49 Match with conditions
9:30 Match with objects
14:42 Caveats of using structural pattern matching
16:11 Other Python 3.10 features & final thoughts
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
Комментарии