Presented at PyGotham 2017
Overview
We rarely think about the dot “.” between our objects and their fields, but there are quite a lot of things that happen every time we use one in Python. This talk will include the commonly known functions, (dict, getattr, etc), but especially focus on the Descriptor Protocol.
Description
We rarely think about the dot “.” between our objects and their fields, but there are quite a lot of things that happen every time we use one in Python. This talk will explore the details of what happens, how the descriptor protocol works, and how it can be used to alter the Python object model.
Actions explored:
* instance dicts
* magic methods
* the descriptor protocol
Examples include altering method binding and property behaviors, as well as supporting method implementation reuse via Descriptors.
Conference site:
https://2017.pygotham.org/talks/the-8-things-that-happen-at-the-between-an-object-and-the-attribute/
Video:
https://youtu.be/Bg_cEIkOS9g
PyVideo.org:
http://pyvideo.org/pygotham-2017/the-8-things-that-happen-at-the-between-an-object-and-the-attribute.html