Understanding Python: Abstract Base Classes

  Рет қаралды 3,740

Jake Callahan

Jake Callahan

Жыл бұрын

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 ...

Пікірлер: 16
@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! kzfaq.info/get/bejne/abehiLWhy527mqc.html
@halfbakedthoughts4150
@halfbakedthoughts4150 7 ай бұрын
​​@@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 7 ай бұрын
@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 6 ай бұрын
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 8 ай бұрын
very nice explaination. Thanks!
@hackytech7494
@hackytech7494 8 ай бұрын
Thank you so much.
@magno5157
@magno5157 3 ай бұрын
What's the difference between abstractmethod and abc.abstractclassmethod?
@JakeCallahan
@JakeCallahan 3 ай бұрын
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 3 ай бұрын
@@JakeCallahan ah... so it's just @abstractmethod @classmethod in a single decorator
@JakeCallahan
@JakeCallahan 2 ай бұрын
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 2 ай бұрын
@@JakeCallahan I see but seeing that you use it, I guess people still widely use the decorator?
@JakeCallahan
@JakeCallahan 2 ай бұрын
While you can use it for now, it will be removed in the future, so best to avoid it.
@dragonkat13
@dragonkat13 Жыл бұрын
great video! informative and easy to understand as usual! thanks!
Understanding Python: Descriptors
23:42
Jake Callahan
Рет қаралды 5 М.
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 33 МЛН
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 37 МЛН
OMG 😨 Era o tênis dela 🤬
00:19
Polar em português
Рет қаралды 11 МЛН
Understanding Python: Threading
23:26
Jake Callahan
Рет қаралды 1,3 М.
Abstract Class and Abstract Method in Python
12:29
Telusko
Рет қаралды 344 М.
Protocols in Python: Why You Need Them - presented by Rogier van der Geer
28:40
EuroPython Conference
Рет қаралды 10 М.
Understanding Python: Metaclasses
30:58
Jake Callahan
Рет қаралды 5 М.
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 196 М.
Understanding Python: Asyncio
19:43
Jake Callahan
Рет қаралды 2,1 М.
Understanding Python: Multiprocessing
21:50
Jake Callahan
Рет қаралды 2,8 М.
super/MRO, Python's most misunderstood feature.
21:07
mCoding
Рет қаралды 211 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,5 МЛН
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 23 МЛН
Latest Nokia Mobile Phone
0:42
Tech Official
Рет қаралды 491 М.