Python Attributes and Methods

Shalabh Chaturvedi

All Rights Reserved.

About This Book

Explains the mechanics of object attribute access for new-style Python objects:

  • how functions become methods

  • how descriptors and properties work

  • determining method resolution order

New-style implies Python version 2.2 and upto and including 3.x. There have been some behavioral changes during these version but all the concepts covered here are valid.

This book is part of a series:

  1. Python Types and Objects

  2. Python Attributes and Methods [you are here]

This revision:
Discuss | Latest version | Cover page
Author: shalabh@cafepy.com


Feedback

Comment on this book here: discussion page. I appreciate feedback!