Python Metaclasses: Everything is an Object

  Рет қаралды 6,581

Real Python

Real Python

Күн бұрын

n Python, everything is an object, even the classes that create objects. You used a class to instantiate an object instance, but classes themselves are also instantiated behind the scenes. This mechanism is available to you as a programmer through the concept of metaclasses.
This is an advanced topic and this video is geared toward an intermediate Python or beyond.
This is a portion of the complete course, which you can find here:
realpython.com...
The rest of the course covers:
- Real-world Metaclasses
- Metaclass Usage within the Python Standard Library
- Additional resources to continue your learning

Пікірлер: 11
@drz1
@drz1 Жыл бұрын
Very concise and exactly what I needed. THANK YOU!
@VaibhavSharma-zj4gk
@VaibhavSharma-zj4gk Жыл бұрын
Very easy explaination 😍
@ahmedrateb5867
@ahmedrateb5867 Ай бұрын
Brilliant ❤
@tbazadaykin
@tbazadaykin 8 ай бұрын
(12:26) If we talk about hierarchy in terms of “ancestor”/“descendant”, then at the top there will be an `object`. Therefore, the class `Apple` will be a descendant of the class `Fruit`, which will be a descendant of the class `object`, and all 3 will be instances of class `type`. Moreover - `type` is a descendant of `object` and both are an instance of `type`. `object` has no ancestors. The ancestor for the class is indicated in the attribute `__base__`.
@RupeshBhandari-977
@RupeshBhandari-977 Жыл бұрын
Great ❤😊
@rishiraj2548
@rishiraj2548 Жыл бұрын
Thank you
@pancernymisiek
@pancernymisiek Жыл бұрын
where is the 2nd video with real world examples?
@petersshabbygarage396
@petersshabbygarage396 3 ай бұрын
Paywalled ;(
@sihonglai9059
@sihonglai9059 Жыл бұрын
great
@serychristianrenaud
@serychristianrenaud Жыл бұрын
Thank
@blacky7801
@blacky7801 10 ай бұрын
but what is the type of classobj 🤔?
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 117 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 45 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 90 МЛН
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 442 М.
Python's enum - Start Building Enumerations
19:38
Real Python
Рет қаралды 3,1 М.
Understanding Python: Metaclasses
30:58
Jake Callahan
Рет қаралды 6 М.
The Ultimate Guide to Writing Classes in Python
25:39
ArjanCodes
Рет қаралды 113 М.
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 202 М.
Modern Python logging
21:32
mCoding
Рет қаралды 186 М.
Metaclasses in Python
15:45
mCoding
Рет қаралды 154 М.
Comparing Getters & Setters vs Python Properties
16:34
Real Python
Рет қаралды 4,1 М.
Compiler Q&A, September 2024
2:10:03
Jonathan Blow
Рет қаралды 18 М.
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 117 МЛН