Skip to main content

Read-Only Descriptors

  • Chapter
  • First Online:
Python Descriptors
  • 3533 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 9.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Jacob Zimmerman

About this chapter

Cite this chapter

Zimmerman, J. (2016). Read-Only Descriptors. In: Python Descriptors. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2505-9_8

Download citation

Publish with us

Policies and ethics