Title | : | A Closer Look At Structural Pattern Matching // New In Python 3.10! |
Lasting | : | 17.12 |
Date of publication | : | |
Views | : | 103 rb |
|
Too bad my camera decided to switch off near the end It probably couldn't handle the awesomeness of structural pattern matching 😎 Comment from : @ArjanCodes |
|
This was really helpful How about a special on how to use it for minimal unique string matching when parsing commands and arguments, eg A - A*dd, Beg - Beg*in, Bef - Bef*ore, etc Comment from : @neilhiggins350 |
|
decidedly the best tutor on YOUtube Comment from : @johncongerton7046 |
|
Neat! Comment from : @joaopedrorocha5693 |
|
cool video thx, maybe a side by side comparison of the 310 and the previous version would be nice Comment from : @happygarlic13 |
|
Fantastic video! Comment from : @immortalsun |
|
Watering your flower Comment from : @XPXSDH |
|
Thanks! Comment from : @edgecrush3r |
|
what a great implementation of the classical Switch statement offering much versatility As i am not a big fan of the argparse module, this certainly makes my life easier in the future Comment from : @edgecrush3r |
|
Can you match by type and tuple, sorta like Scala's match? Comment from : @xpmon |
|
@13:30 why use an array for the arguments? Is that just personal preference? Comment from : @Schecterbaby |
|
Great content Very helpful for new Python programmers Comment from : @bayuganspride |
|
I have learned more from 10 arjan videos that i have from any other source on python another great video this Comment from : @chrisweldon791 |
|
Actually, you don't need to import typing List and use more convenient and beginner-friendly 'list[int]' syntax! Comment from : @airatvaliullin8420 |
|
In the first example why did you use the ! in the "other" case? Comment from : @tomasbernardo5972 |
|
Can someone explain how the pipe character is used in python? It seems like Arjan is using it here as a logical OR, but I can't seem to get that functionality out of it in other settings Comment from : @baphnie |
|
Can this be used for factory pattern? Comment from : @zachkramer4347 |
|
Very nice feature Thank you Comment from : @user-tg3tg9gh3q |
|
What does the !r do in the string interpolation? Comment from : @valizeth4073 |
|
What's that "other!r"? I don't recognise that use of the exclamation mark or what the r does Comment from : @digitig |
|
great job Arjan Comment from : @presstv |
|
¡Gracias! Comment from : @ManuelOchoa2711 |
|
Nice video Don't you think adding OOP in the "run_command_v4 function is a bit overkill? Comment from : @EW-mb1ih |
|
8:58 I'm not a big fan of v3 with two "case" clauses for handling same "quit" | "exit" | "bye" - repetition which could be error prone if you add "f*k off" as a 4th exit option but forgot to update all cause lines This might be especially painful when you have more "--" options Comment from : @Jarek |
|
Hi! I have just been introduced to your channel and I wanted to ask - how shall I navigate your videos from more like beginner level to advanced? Do you actually have videos for python beginners? Thank you! Comment from : @andreaardemagni6401 |
|
patten matching before fixing recursion? meh Comment from : @julians2597 |
|
Very interesting For the object pattern matching, is it actually instantiating a new object for every case check? Wondering whether this would have performance implications for classes with expensive constructors Comment from : @imadetheuniverse4fun |
|
I just came across your channel for first time and I LOVE IT!!! Thank you so much for your videos! brI'm a Python Developer too, who is learning Scala and I'm also a Youtuber 😂 So Hi Five for all our matching !!! 😂 brsaludos from Argentina 🥰 Comment from : @pensarcoding |
|
what is difference between using IF/ELIF and case? Comment from : @nahakuu |
|
your videos are always very interesting thank you ! Comment from : @patricktarnaud |
|
In v4, why did you use command as the variable for the match statement along with command being an element of the Command class? Doesn't overuse of the word command like that muddy the water for anyone reading it? Comment from : @thesupercoach |
|
bCamera accidentally switches off/bbrArjan: Sorry for the camera, I'll try to put a positive spin on itbrMe: Finally! Me and my ADHD brain can actually focus on the code being written, instead of constantly getting distracted! Comment from : @torrentails |
|
Wished I have this channel so much earlier in my career!! Comment from : @jindy94 |
|
Neat! One more question please, i think you didn’t said it explicitly; okay the case has an order importance, but if i dont qui the program as you do with quit() , may i go by many case or only one is possible as the elif statement ? Thanks i hope i could currently use python 310 its dope! Comment from : @obed818 |
|
Please, tell me you can implement duff's device in Python! XD Comment from : @ingframin |
|
Great tutorial @arjan One question In your first example, you used None to mention the return type of the methods without any return Is this the standard/preferred way? I don't really mention it if there is no return Thank you Comment from : @mithunkinarullathil643 |
|
Switch statement in python 🤔?brCan't we do the same with dictionary Comment from : @lufiporndre7800 |
|
Thanks, man! Very clearly explained! Comment from : @mateuszbaginski5075 |
|
I'm pretty new to this channel Is that some inside joke you put on the wall (STRUCTURAL MATTER PATCHING)? Comment from : @WeisSchwarz |
|
Switch case in python is something that I've been waiting for so long Your tutorials are amazing by the way Comment from : @luismiguel5391 |
|
Question at 9m34 looking at version 3 of the command Comparing the "with --force" case with the "no force", the print statements are different, but the next command is quit() in both cases Not seeing how the behaviour will actually be different Comment from : @john-r-edge |
|
10:35 since you're explicitly working with Pyton 310, you can just use list[str] instead of the typing import Same with dict, tuple, set etc Comment from : @randolphbusch7777 |
|
The best structural pattern matching tutorial I've watched Comment from : @zacky7862 |
|
Structural Matter Patching Comment from : @rachevp |
|
Is this the new best way to keep track of states in an application? Comment from : @ByteNinja-YT |
|
Having tried Rust after Python, it's a feature I was missing Glad to see it coming to Python as well Comment from : @TBaguette |
|
much appreciated how you explain things!! Thanks again Comment from : @hudheyfa |
|
How to use 310 in anaconda Comment from : @ashishrock9585 |
|
This looks amazing for beginners that want to be able to easily parse input, or perhaps even files (by looping over lines) Comment from : @NostraDavid2 |
|
More pydantic tutorials? Comment from : @chriskeo392 |
|
I wonder, how does the object based matching affect performance/memory usage compared to the other alternatives? Comment from : @josesimoes3478 |
|
Another great video Thank you for so many examples in a series to show the features and always appreciate the high audio/video production quality of your videos and I love your choice of background and lights Comment from : @iChrisBirch |
|
finally switch command in python one of the most comfortable programming languages without switch sounded bad Thanks for this tutorial and to see you in the next one ;) Comment from : @profsor5008 |
|
I've been enjoying your library of videos! Keep it up Comment from : @thefrator5275 |
|
Just starting to master structural pattern-matching in Scala and it's good to see it coming to Python 3 Loving your videos Comment from : @mrc1500 |
|
This is pure magic… especially when objects get involved Comment from : @JJSogaard |
|
This reminds me of Elixir pattern matching, very cool! BTW How about a comparison between `pyenv`, `pipenv` and `python -m venv`? Comment from : @ConfusedHomer |
|
Thank you so much for the video, it was absolutely flawless Comment from : @HadesMrDark |
|
I skipped this video when it came out, because I wanted to watch it when I start using Python 310 But somehow Youtube stopped recommending me your videos (have been watching one every day for the last weeks) - so I decided to go to your channel and browse the videos by myself Turns out: this is the only one I haven't watched yet Great job! Comment from : @samuelstelzer |
|
Great video as always! Comment from : @aurelistrate1633 |
|
Woooohooooo, anotther great video! However, I am not quite sure how much I will actually use this feature, let's see Comment from : @robertbrummayer4908 |
|
Did I also mention that if you were to combine the legacy capabilities of Microsoft Access with the super power of R, you could essentially transcend anything that can be done in Python? Not only can you transcend it, it is possible to construct the solution more elegantly than can be done in Python Just sayin Comment from : @BRichard312 |
|
"Structural Matter Patching", ehbrbrI need one of those signs to be behind me in Teams calls Comment from : @RoamingAdhocrat |
|
i already have router functions that basically do this with nested ifs and calling other functions, this will clean that up nicely :D Comment from : @Maric18 |
|
Since 39, Python lets you type hint directly with the builtin types, no need to import List and the like from typing See PEP 585 Comment from : @schoolmonkey13 |
|
Wtf is happening to python these days -_- Comment from : @armandvillaverde9812 |
|
Arjan I recently discovered your channel and honestly your way of expressing whatever the idea on your mind is very precise and neat Me and my friends also have a channel for educational content mostly on software and your channel really re-inspired me I have spent lots and lots of hours on YouTube trying to find good quality and fun content on topics like these and you are golden Thank you Can't wait to see more of your content! Comment from : @goktugbasaran7591 |
|
I see myself nesting these indefinitely… Comment from : @franziscoschmidt |
|
one of the oldest features of rust Comment from : @momoalnajjar |
|
Surprised that there isn't a case statement in Python why do I remember learning it? Maybe that was Javascript or something Comment from : @xpkareem |
|
I think the maintainers of argsparse are going to be very happy with this Big refactor though! Comment from : @WernerRaath |
|
Can you match a REGEX with this? Comment from : @snoopyjc |
|
Just patiently waiting for Python to turn into Easy Haskell Comment from : @sagnikbhattacharya1202 |
|
Rust programmer: welcome to the club! This is an amazing language feature Comment from : @AnAmiC |
|
Wait, has python not had a switch statement equivalent for all this time and I never noticed? lol Comment from : @GlobusTheGreat |
|
Finally a switch case My day is saved I always used an external switch package as a standin Comment from : @anjanavabiswas8835 |
|
Oh wow I really want JavaScript to have this too Comment from : @falxie_ |
|
Hey do you have Odysee channel? I love these videos Comment from : @wilmhit |
|
Idea for a future series:brGo through a module, for example pathlib, and breakdown the inner workings There is so much to learn from the professionals who write production grade code Comment from : @dovidsgreenberger435 |
|
Thanks for this Comment from : @mistercakes |
|
I just studied functional paradigma applyin it to oCaml and i love this new feature Comment from : @lianyf8866 |
|
Thank you!! Beautifully explained You are a gifted teacher I previously watched another video on this topic and was baffled After your video I feel primed for the 310 release Comment from : @dovidsgreenberger435 |
|
Hi 👋 Your videos are really good and very smooth Can you please make a video on Mixin classes and when to use them Thanks 👍 Comment from : @akshaysharma6160 |
|
Hi Arjan, well explained, thank you brbrAt least for me, your videos are the perfect middle between too little and too much information Owned yourself a sub!brbrGroeten uit Groningen :-) Comment from : @ThijmenCodes |
|
Keep up the good work, I appreciate the effort :) Comment from : @sk00sha18 |
|
Thank you so much for the explanation! Structural Pattern Matching is more powerful than I imagined and I can't wait to try it out! Comment from : @hicoop |
|
You are the best content creator for programming, love your channelbrbrCheers from Brazil Comment from : @cherryramatis2508 |
|
Your videos are incredoble bro, nice job Comment from : @dudaseifert |
![]() |
Master Python| String In Python | Escape Characters | learn Python #Python #kerala #code #malyalam РѕС‚ : Code with navaf Download Full Episodes | The Most Watched videos of all time |
![]() |
Questionable Color Morgan Dollars - Artificial Toning, or Natural Toning? Taking a Closer Look AT NT РѕС‚ : TheCoinGeek Download Full Episodes | The Most Watched videos of all time |
![]() |
ElixirConf 2022 - Elayne Juten - Learn you some pattern matching for great good! РѕС‚ : ElixirConf Download Full Episodes | The Most Watched videos of all time |
![]() |
Pattern Blocks - Making designs with Pattern Blocks 01 || ColorFalls РѕС‚ : Color Falls Download Full Episodes | The Most Watched videos of all time |
![]() |
Distributed Machine Learning and Wireless Networks: A Closer Union | AI/ML IN 5G CHALLENGE РѕС‚ : AI for Good Download Full Episodes | The Most Watched videos of all time |
![]() |
Pattern Program in python РѕС‚ : Genius Deepanshi Download Full Episodes | The Most Watched videos of all time |
![]() |
PYTHON FROM SCRATCH DAY 0: Learning Python by Mark Lutz Chap 1 РѕС‚ : VeryKumar Download Full Episodes | The Most Watched videos of all time |
![]() |
Python Tutorial For Beginners in Hindi | Complete Python Course | Introduction РѕС‚ : Career Campus Pro Download Full Episodes | The Most Watched videos of all time |
![]() |
PYTHON FROM SCRATCH DAY 0 PT2: Learning Python by Mark Lutz РѕС‚ : VeryKumar Download Full Episodes | The Most Watched videos of all time |
![]() |
Day 14, + in python. Learning python 5th edition book РѕС‚ : Hi Chewy Download Full Episodes | The Most Watched videos of all time |