The __getattr__ Protocol | Actually USING Python Part 1

Published: 16 October 2024
on channel: Don't Use This Code • James Powell
307
15

Sign up for DUTC Weekly: https://mailchi.mp/dutc/ytweekly

LinkedIn:   / do-n-t-use-this-code  
Website: https://www.dontusethiscode.com/index...
Upcoming events: learning.dutc.io
Looking for training? Contact info@dutc.io

How do things really work? What’s going on behind the scenes? How much of this really matters; how much does one REALLY need to know?

This series is part of (More) Python Basics for Experts - session 3. In this series, we will look to answer the following questions:

What happens when I look up an attribute? What is _mro_ and what is the “method resolution order”? How do _getattr_ and _getattribute_ work?What is the descriptor protocol?
What is a generator, really? How is it related to a function, a lambda, and a generator expression?
What is an asynchronous function, really? How is it related to a synchronous function and to a generator?
What happens when I call an instance method? What is a @property? What is a @classmethod? How do they work in practice?
What does del do? What is _del_ actually for? How do reference counting and garbage collection work in Python? What is the cyclic garbage collector? - What is the gc module?
What is _class_ (and why is it mutable)? What is the difference between a “cast” and a “conversion”? How does this relate to module-level _getattr_ and _dir_ (PEP-526)?


On this page of the site you can watch the video online The __getattr__ Protocol | Actually USING Python Part 1 with a duration of hours minute second in good quality, which was uploaded by the user Don't Use This Code • James Powell 16 October 2024, share the link with friends and acquaintances, this video has already been watched 307 times on youtube and it was liked by 15 viewers. Enjoy your viewing!