The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods)
Have you heard Descriptors mentioned a lot but no-one seems to add any detail or tell you anything else other than Property in Python is a type of Descriptor?
In this two-part mini-series, we're going to cover descriptors inside out and give you the knowledge and expertise to go out in the wild and start using them of your own accord.
Part 2 will be out tomorrow and you'll use all the information you have learnt in this tutorial to do some pretty neat things like:
- Creating managed attributes
- Understanding Django source code
- Extending a Property through a subclass
- Creating Lazily Computed Attributes
- Write our own Python implementation of classmethod and
staticmethod
- Write our own Python implementation of dict.fromkeys()
classmethod
Please like and subscribe if you enjoyed this content and other tutorials in this channel.
Видео The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods) канала Live Python
In this two-part mini-series, we're going to cover descriptors inside out and give you the knowledge and expertise to go out in the wild and start using them of your own accord.
Part 2 will be out tomorrow and you'll use all the information you have learnt in this tutorial to do some pretty neat things like:
- Creating managed attributes
- Understanding Django source code
- Extending a Property through a subclass
- Creating Lazily Computed Attributes
- Write our own Python implementation of classmethod and
staticmethod
- Write our own Python implementation of dict.fromkeys()
classmethod
Please like and subscribe if you enjoyed this content and other tutorials in this channel.
Видео The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods) канала Live Python
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Shallow Copies versus Deep Copies: What you need to know to work with lists effectively and bug-free](https://i.ytimg.com/vi/DenIgu8oimI/default.jpg)
![Python Project Mindset in 3 minutes: What to choose? How to go about it? (2019)](https://i.ytimg.com/vi/CvMQnHXXNyo/default.jpg)
![Write your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveats](https://i.ytimg.com/vi/dE0w79wHjuM/default.jpg)
![Beginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With Paths](https://i.ytimg.com/vi/VhiqW3SYpWk/default.jpg)
![Python 3 Exception Handling: An in-depth look at this fundamental topic (1/2)](https://i.ytimg.com/vi/TCdhTe2vS7Y/default.jpg)
![Async Python Tutorial: Starting to Build an Asynchronous RESTful interface](https://i.ytimg.com/vi/dJttCNhh8S0/default.jpg)
![A challenge for intermediate-level Python learners (and a bit of channel news)](https://i.ytimg.com/vi/sE5KPth-O7k/default.jpg)
![Definitive Guide to Python Classes and OOP in Python: Introduction and Objects](https://i.ytimg.com/vi/NDCQKGMGAds/default.jpg)
![Profiling Python: An introduction to understanding the resource footprint of your code](https://i.ytimg.com/vi/MgBgMyYROTE/default.jpg)
![Python Bytecode: An Introductory Tutorial](https://i.ytimg.com/vi/mE0oR9NQefw/default.jpg)
![A Beginner's Introduction to Python's Lexical Scoping](https://i.ytimg.com/vi/oPcNB4QERLM/default.jpg)
![How I became a Self-Taught Programmer achieving my dreams (Tips, advice and inspiration)](https://i.ytimg.com/vi/lH1CF_hayck/default.jpg)
![Python Mutable Default Parameters in 5 minutes: A common misunderstanding (and memoization)](https://i.ytimg.com/vi/kgkms3xF5ZE/default.jpg)
![Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)](https://i.ytimg.com/vi/5tWIxBcvy10/default.jpg)
![9 ESSENTIAL Python 3 recipes to know Inside-out](https://i.ytimg.com/vi/oz32hoQRtgc/default.jpg)
![Intermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)](https://i.ytimg.com/vi/e-_tsR0hVLQ/default.jpg)
![Python Lambda Expressions Tutorial: what, how, when and why](https://i.ytimg.com/vi/dQxQsZ39XMU/default.jpg)
![Python's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free code](https://i.ytimg.com/vi/LqVVzstFT3c/default.jpg)
![A short introduction to Hash Functions, Hash Tables and Bloom Filters](https://i.ytimg.com/vi/oRGA05G421E/default.jpg)
![Remote Procedural Call via XML-RPC in 5 minutes](https://i.ytimg.com/vi/_8xXrFWcWao/default.jpg)
![itertools in Python 3: A brief guide to giving your iteration maximum leverage](https://i.ytimg.com/vi/jiPalxUAlUg/default.jpg)