Abstract
There are many good uses for read-only—or immutable—property descriptors. In fact, there is a lot to back up the idea of having everything be effectively immutable. Unfortunately, due to Python's inherent lack of being able to make anything actually immutable, interpreter optimization isn't one of those possible benefits with Python. (PyPy may be able to make JIT optimizations because of it, but don't take my word for it.)
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
© 2018 Jacob Zimmerman
About this chapter
Cite this chapter
Zimmerman, J. (2018). Read-Only Descriptors. In: Python Descriptors. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3727-4_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3727-4_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3726-7
Online ISBN: 978-1-4842-3727-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)