Тёмный
No video :(

python typing: @overload (intermediate) anthony explains  

anthonywritescode
Подписаться 40 тыс.
Просмотров 6 тыс.
50% 1

today I talk about the @overload decorator for typing and how it can be used to signal typed-dispatch to a type checker! I also demo a few quick use cases
- what is Ellipsis: • python: Ellipsis (...)...
- unpacking a Union: • python typing: re.matc...
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/aso...
stream github: github.com/ant...
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

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

 

19 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@marco_gorelli
@marco_gorelli 3 года назад
really clear, thanks!
@paulg687
@paulg687 3 месяца назад
Excellent.
@jeffz7310
@jeffz7310 2 года назад
thank you Athony
@amir.hessam
@amir.hessam Год назад
very nice; Thank you; however the link to `unpacking Union` took me to python typing: re.match and Optional (intermediate) anthony explains #115;
@anthonywritescode
@anthonywritescode Год назад
yep that's the right one -- it has the strategies to handle that
@TheWytzepakito
@TheWytzepakito 3 года назад
Would you ever use the third-party multimethod library to get Java-like method overloading?
@anthonywritescode
@anthonywritescode 3 года назад
probably not, no -- it would be very slow and there's `functools.singledispatch` for 1-ary overloading
@TheWytzepakito
@TheWytzepakito 3 года назад
@@anthonywritescode Thanks for the advice!
@kazmkazm9676
@kazmkazm9676 Год назад
@@anthonywritescode Can we implement function/method overloading in Python for 2-ary or n-ary operations via built-in packages?
Далее
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Просмотров 4,4 млн
Zombie Boy Saved My Life 💚
00:29
Просмотров 5 млн
Python Typing - Type Hints & Annotations
24:46
Просмотров 111 тыс.
python Generics (intermediate) anthony explains #430
13:43
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Просмотров 4,4 млн