Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Magic of Attribute Access

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of Python's attribute access mechanism in this comprehensive conference talk from EuroPython 2014. Delve into the inner workings of attribute lookup, including method resolution order, instance and class variables, descriptors, and special methods. Learn how to leverage these customization primitives through practical examples, such as implementing proxy objects, creating generic descriptors for ORM columns, and understanding advanced concepts like SQLAlchemy's hybrid properties and Pyramid's memoizing decorator. Gain insights into Python's object model and discover how these seemingly complex mechanisms contribute to the language's flexibility and simplicity.

Syllabus

Intro
Attribute Access
Object Model Example
Get Attribute
Subclasses
Special treatment
Descriptors
Control Setting
Terminology
Descriptor
Saving Memory
Special Magic Incantation
Magic Formula
Lazy Property
On Class
Method Resolution Origin
Questions

Taught by

EuroPython Conference

Reviews

Start your review of The Magic of Attribute Access

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.