Python's Structural Pattern Matching
HTML-код
- Опубликовано: 17 дек 2022
- Python 3.10 introduced a new language construct called "structural pattern matching". If you are familiar with the "switch" statement found in some other programming languages, then this is Python's equivalent to that - but with more features!
#mathbyteacademy #python #pythontips
Code for this Video
================
Available in GitHub blog repo: github.com/fbaptiste/python-blog
Direct link: tinyurl.com/yzakb2dy
My Python Courses
=================
- Python 3 Fundamentals (introduction to Python)
www.udemy.com/course/python3-...
- Python 3 Deep Dive (Part 1 - Functional)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 2 - Iteration, Generators)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 3 - Hash Maps)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 4 - OOP)
www.udemy.com/course/python-3...
I just cannot forget your invaluable four parts python course where you were digging so deep, that your material simply blew out of the water all “similar” tutorials.
Great explanation as always
Hey Fred, I bought all your courses in udemy. Can you bring another course on threading, asynchronous programming, multiprocessing, and design pattern? It will be very helpful for us.
+1!
+1!
Thank you sir 🙏
Great video. Could you carry on with another instalment on pattern matching and expand on “object-like ()” syntax and also using the dot (“.”) dereferencing syntax in the case to avoid matching by type?
thanks. when will you come up with a complete python rest API course on udemy?
I did not even know that this thing existed in python
Hey Fred. Great content as always! May I suggest that you zoom into your screen a little more, while recording your session? On a small phone it’s almost impossible to read..
As strange it may sound, but actually pattern matching is THE LEAST understood new stuff added to python recently. We need to fix this “misunderstanding” :-)
Oh NO…… NO ‘COBOL’ 😭😭😭
(Returning to coding and now picking up Python…. Professionally coded COBOL 25 years back🤣🤣…still the best thing COBOL/DB2/CICS ..along with TSQ/TDQ ..messaging system of the IBM mainframe )
Hehe, I remember COBOL from my first job... 😀
Thinking back even more, I think we used Tuxedo for message queues (was a Tandem mainframe). And NonstopSQL for the DB. Fun times!
Please have your code zoomed it. Its pretty hard to see on mobile phones 😢