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

Pluralsight

Core Python: Custom Attributes and Descriptors

via Pluralsight

Overview

Python has a dynamism which can give our objects superpowers.
This course will teach you how to implement highly flexible interfaces with
where the attributes of objects are determined on-the-fly, rather than being
determined in advance by classes.

When classes are too rigid, but dictionaries too flexible, you can often find a good trade-off with dynamic objects. In this course, Core Python 3: Custom Attributes and Descriptors, you’ll learn to make objects with highly dynamic interfaces. First, you’ll explore how objects are internally represented in Python. Next, you’ll discover how to customize object attribute access. Finally, you’ll learn how to define your own descriptors, which form the basis of much of how Python attributes work. When you’re finished with this course, you’ll have the skills and knowledge of Python object customization needed to produce flexible and expressive code.

Syllabus

  • Course Overview 1min
  • Object Internals 38mins
  • Class Internals 4mins
  • Optimizing memory usage with slots 6mins
  • Descriptors 38mins

Taught by

Robert Smallshire

Reviews

4.6 rating at Pluralsight based on 25 ratings

Start your review of Core Python: Custom Attributes and Descriptors

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.