Python Descriptors

  • __init__
  • __get__
  • __set__
  • __delete__

A more manual way to implement the property() functionality we have just seen. Use cases:

  • Implement type-checking and/or value checking for attribute setters ()