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 ()
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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 ()