Тёмный

Why *ARGS and **KWARGS are Useful in Python 

John Watson Rooney
Подписаться 81 тыс.
Просмотров 17 тыс.
50% 1

Keep exploring at brilliant.org/J... Get started for free, and hurry-the first 200 people get 20% off an annual premium subscription.
This video was sponsored by Brilliant
Scraper API www.scrapingbe...
Patreon: / johnwatsonrooney
Donations: www.paypal.com...
Proxies: iproyal.club/J...
Hosting: Digital Ocean: m.do.co/c/c7c9...
Gear I use: www.amazon.co....
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases

Наука

Опубликовано:

 

20 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Keep exploring at brilliant.org/JohnWatsonRooney/ Get started for free, and hurry-the first 200 people get 20% off an annual premium subscription.
@brandone7273
@brandone7273 Год назад
I'm a still newish infrastructure guy, trying to automate as much network functionality as I possibly can. I don't really know any devs to pick their brain or have them expound on a topic to really cement the concept in my head. Your videos have helped me tremendously in understanding python in a way that's actionable in my environment. Thank you!
@JohnWatsonRooney
@JohnWatsonRooney Год назад
thank you! I'm glad to have helped out in some way
@oromis995
@oromis995 Год назад
absolute legend. I watched your web scraping video because it appeared on my feed and applies to my job, then I saw this one which was a missing piece of knowledge I had that I couldn't explain in my code. Nice job
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks that’s very kind I’m glad it helped you!
@gabrieljeca
@gabrieljeca Год назад
Wow, I finally understood those concepts! Awesome content as always, JWR!
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Awesome! Thank you!
@ea3gug
@ea3gug Год назад
Very interesting, now I know better python. I understand that when you use kwargs, it makes difficult for the IDE (Pycharm,...) to check that you are passing a valid header/parameter to the receiving class in edition mode or "compilation mode" before running, creating issues in runtime when you use the wrong entry. Thanks for your great video!
@JohnWatsonRooney
@JohnWatsonRooney Год назад
thanks for watching!
@Yeeeeeehaw
@Yeeeeeehaw Год назад
man, your videos are extremely useful !
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks very kind
@Septumsempra8818
@Septumsempra8818 Год назад
Him and Python 360 have the best scraping vids on RU-vid right now!
@jjdawg9918
@jjdawg9918 Год назад
Great video! It also confirms my distaste of highly overloaded operators where you are guessing at the behavior. But in full disclosure I'm a lowly C programmer ;)
@datavizlab
@datavizlab Год назад
Bro you are doing great job. Learning lot of from y ❤
@Matt-es1wn
@Matt-es1wn Год назад
Dataclasses seem so amazing. I wanna start using these instead of the annoying merhods i use with pandas right now
@arthurpenndragon6434
@arthurpenndragon6434 Год назад
great explanation, really helpful!
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks!
@KrAsHeDD
@KrAsHeDD Год назад
Thanks so much, it helps
@azhari7968
@azhari7968 Год назад
This is very random but, you showed up in my recommendation page and I just wanna say that you have an awesome beard I can't not look at it
@JohnWatsonRooney
@JohnWatsonRooney Год назад
thanks, I'm going to take that as a compliment
@danielmdubois
@danielmdubois Год назад
This video does a good job on how, but maybe it could be better on why? I think some time could be spent explaining why you wouldn't just use a list parameter for any function (e.g.) that takes a collection, instead of *args. True, this would effectively enforce the caller performs some list comprehension on whatever is being dealt with, whether it be a tuple, multiple variables, iterable, etc... I think I know the answer -- turning something iterable into a list increases memory requirements and probably processing time from double work -- but it would be nice to be explicitly said; to explain why these syntax tricks add value to python. People coming from other languages, particularly statically typed languages, are probably more comfortable passing collections around, as it's a more straightforward concept. I feel like **kwargs is especially tricky to grok, because of the weird multi-step process of unpacking named arguments, which itself is a quirk specific to python, while then leaving a "remant" kwargs dictionary to operate on.
@SydwasheretheIII
@SydwasheretheIII 6 месяцев назад
I’ve been trying for hours to find answers on why I’d ever use *args and **kwargs instead of passing explicit lists and dicts. Every video or forum I’ve found explains HOW *args and **kwargs work, but I understood that from the start. Still stuck on the why :(
@Septumsempra8818
@Septumsempra8818 Год назад
A lesson from MrBeast: teach us something about args/kwargs in brilliant. We can't skip the information essential to this topic. Ad Retention = $$$
@keagankemp6275
@keagankemp6275 Год назад
Sjoe 10mins to save hours of reading and frustration, great video
@JohnWatsonRooney
@JohnWatsonRooney Год назад
Thanks!
@keagankemp6275
@keagankemp6275 Год назад
@@JohnWatsonRooney equally impressive is that you are a self taught developer, I’m using that as motivation when python seems impossible
@stewart5136
@stewart5136 Год назад
Another "brilliant" video from John. Pun intended 😉
@peterkim9696
@peterkim9696 Год назад
Please make a video how to deploy fastapi script online so other people can use my tool anywhere
@geekyprogrammer4831
@geekyprogrammer4831 Год назад
There are already many videos on that.
@DoggARithm
@DoggARithm Год назад
One of the best videos on the topic I've seen! Good explanation
@bryce3851
@bryce3851 3 месяца назад
7:15 python joke of they year
@Qwasieee_P
@Qwasieee_P Год назад
Someday I'll be mature enough not to laugh everytime he says mydict 😖😖
@bakasenpaidesu
@bakasenpaidesu Год назад
;)
Далее
How I Organize Data In Python with Dataclasses
10:04
Просмотров 28 тыс.
Новый фонарик в iPhone с iOS 18
00:49
Просмотров 181 тыс.
ЛИЗА - СПАСАТЕЛЬ😍😍😍
00:25
Просмотров 1,8 млн
Best Web Scraping Combo? Use These In Your Projects
20:13
PLEASE Use These 5 Python Decorators
20:12
Просмотров 107 тыс.
Python *ARGS & **KWARGS are awesome! 📦
14:54
Просмотров 75 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 296 тыс.
Metaclasses in Python
15:45
Просмотров 152 тыс.
MSI GAMING BLACK SCREEN / STUCK ON BOOT LED
1:00
Просмотров 4,2 млн
when foldable cellphones follow the trend#shorts
0:11
#samsung #retrophone #nostalgia #x100
0:14
Просмотров 15 млн
Худший iPhone 16. #apple #iphone
1:01
Просмотров 153 тыс.