Abstract
In Chapter X it was stated that attribute access calls get transformed into descriptor calls, but it was not stated how. The simple answer is that __getattribute__() does it, but there’s more to it than that, so this answer is also entirely insufficient. This simplification is helpful, since it tells you that, if you want to customize __getattribute__() and have it continue working with descriptors, you need it to delegate to the default implementation with super()
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Jacob Zimmerman
About this chapter
Cite this chapter
Zimmerman, J. (2016). Attribute Access and Descriptors. In: Python Descriptors. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2505-9_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2505-9_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2504-2
Online ISBN: 978-1-4842-2505-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)