Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 августа 2019 г. 3:55:53
00:11:05
Другие видео канала
Shallow Copies versus Deep Copies: What you need to know to work with lists effectively and bug-freeShallow Copies versus Deep Copies: What you need to know to work with lists effectively and bug-freePython Project Mindset in 3 minutes: What to choose? How to go about it? (2019)Python Project Mindset in 3 minutes: What to choose? How to go about it? (2019)Write your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveatsWrite your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveatsBeginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With PathsBeginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With PathsPython 3 Exception Handling: An in-depth look at this fundamental topic (1/2)Python 3 Exception Handling: An in-depth look at this fundamental topic (1/2)Async Python Tutorial: Starting to Build an Asynchronous RESTful interfaceAsync Python Tutorial: Starting to Build an Asynchronous RESTful interfaceA challenge for intermediate-level Python learners (and a bit of channel news)A challenge for intermediate-level Python learners (and a bit of channel news)Definitive Guide to Python Classes and OOP in Python: Introduction and ObjectsDefinitive Guide to Python Classes and OOP in Python: Introduction and ObjectsProfiling Python: An introduction to understanding the resource footprint of your codeProfiling Python: An introduction to understanding the resource footprint of your codePython Bytecode: An Introductory TutorialPython Bytecode: An Introductory TutorialA Beginner's Introduction to Python's Lexical ScopingA Beginner's Introduction to Python's Lexical ScopingHow I became a Self-Taught Programmer achieving my dreams (Tips, advice and inspiration)How I became a Self-Taught Programmer achieving my dreams (Tips, advice and inspiration)Python Mutable Default Parameters in 5 minutes: A common misunderstanding (and memoization)Python Mutable Default Parameters in 5 minutes: A common misunderstanding (and memoization)Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)9 ESSENTIAL Python 3 recipes to know Inside-out9 ESSENTIAL Python 3 recipes to know Inside-outIntermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)Intermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)Python Lambda Expressions Tutorial: what, how, when and whyPython Lambda Expressions Tutorial: what, how, when and whyPython's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free codePython's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free codeA short introduction to Hash Functions, Hash Tables and Bloom FiltersA short introduction to Hash Functions, Hash Tables and Bloom FiltersRemote Procedural Call via XML-RPC in 5 minutesRemote Procedural Call via XML-RPC in 5 minutesitertools in Python 3: A brief guide to giving your iteration maximum leverageitertools in Python 3: A brief guide to giving your iteration maximum leverage
Яндекс.Метрика