Тёмный

Understanding Python: Abstract Base Classes 

Jake Callahan
Подписаться 1,9 тыс.
Просмотров 4,3 тыс.
50% 1

In this video, I go over abstract base classes.
Included in the lesson is how to create a basic abstract base class with abstract methods as well as the basis for a powerful plugin system.
As always, if you have any questions or suggestions for future videos, please leave a comment down below.
Follow me on twitter: / jakejcallahan
Source: github.com/JacobCallahan/Unde...
Timelapse music: 失望した by Eva
Link: • EVA - 失望した [Synthwave]...
Outro music: Elix by Synthness
Link: • Synthness - Elix ★ No ...

Наука

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

 

31 мар 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@JakeCallahan
@JakeCallahan Год назад
If you find some great examples of ABCs in the wild, please reply to this comment with a link!
@sanithumabarna
@sanithumabarna Год назад
Can you explain how descripters in python works ?
@JakeCallahan
@JakeCallahan Год назад
I sure can. In fact, I'll move that up to be the subject of my next video.
@JakeCallahan
@JakeCallahan Год назад
You asked for it, so you got it! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3QqURpf7Wjs.html
@halfbakedthoughts4150
@halfbakedthoughts4150 9 месяцев назад
​​@@JakeCallahancame here after your descriptor video.. you are a blessing... to stick to your word and getting it done so quick.. Looking forward to more of such great videos from you I would just request one thing to start with a real life use case as to why we would prefer these concepts implemented before jumping on to how it works
@JakeCallahan
@JakeCallahan 9 месяцев назад
@halfbakedthoughts4150 thank you for the kind words and feedback. I like to build up towards the more practical examples, but I can definitely see how showing practical could be motivational.
@TheMako101
@TheMako101 7 месяцев назад
Excellent tutorial, @JakeCallahan. You've covered the material beautifully, especially the "register" functionality. I've read the official docs and had no idea what it was talking about 😅. Now it's crystal clear! Thank you !!
@toxfux
@toxfux 10 месяцев назад
very nice explaination. Thanks!
@dragonkat13
@dragonkat13 Год назад
great video! informative and easy to understand as usual! thanks!
@hackytech7494
@hackytech7494 10 месяцев назад
Thank you so much.
@ShuCarolina
@ShuCarolina 4 дня назад
Where does the plugin() in line 23 come from? I don't see it in this ServicePlugin class.
@magno5157
@magno5157 4 месяца назад
What's the difference between abstractmethod and abc.abstractclassmethod?
@JakeCallahan
@JakeCallahan 4 месяца назад
The second is used for methods decorated with @classmethod. If you're unsure what those are, check out my video in this playlist on Basic Classes.
@magno5157
@magno5157 4 месяца назад
@@JakeCallahan ah... so it's just @abstractmethod @classmethod in a single decorator
@JakeCallahan
@JakeCallahan 4 месяца назад
You're correct! However, abstractclassmethod was deprecated almost immediately after being introduced because they enabled the classmethod decorator to decorate an abstractmethod. So to do this, just stack a classmethod decorator on top of the abstractmethod decorator.
@magno5157
@magno5157 4 месяца назад
@@JakeCallahan I see but seeing that you use it, I guess people still widely use the decorator?
@JakeCallahan
@JakeCallahan 4 месяца назад
While you can use it for now, it will be removed in the future, so best to avoid it.
Далее
Understanding Python: Descriptors
23:42
Просмотров 6 тыс.
Understanding Python: Multiprocessing
21:50
Просмотров 3,5 тыс.
Beautiful gymnastics 😍☺️
00:15
Просмотров 2,8 млн
Stray Kids "Chk Chk Boom" M/V
03:26
Просмотров 19 млн
Understanding Python: Asyncio
19:43
Просмотров 2,8 тыс.
Protocol Or ABC In Python - When to Use Which One?
23:45
Python abstract classes 👻
7:45
Просмотров 74 тыс.
Understanding Python: Metaclasses
30:58
Просмотров 6 тыс.
Abstract Class and Abstract Method in Python
12:29
Просмотров 352 тыс.
Understanding Python: Threading
23:26
Просмотров 1,6 тыс.
Python Standard Library: Functools
33:42
Просмотров 1,6 тыс.
Здесь упор в процессор
18:02
Просмотров 362 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 2,7 млн