Descriptor, data
descriptor protocol
facade class
hashable types
instance dictionary
Boolean flag
name conflicts
__slots__
vars() function
instance’s ID
key ID
location name
__init__() method
set-it-and-forget-it descriptors
validatedAttribute
memory leaks
mutable collections
vs.
non-data
overriding
__setitem__() class
WeakKeyDictionary
Descriptor protocol
__delete__(self, instance) method
__get__(self, instance, owner) method
__set__(self, instance, value) method
Descriptors
abstract method
cons of Python
additional objects
__delete__() method
descriptor-tools library
encapsulation
__get__() method
inheritance
instance, passing
methods (
see
Descriptor methods)
optional/default parameters
pros of Python
class level
encapsulation
read/write patterns
Python, use
__set__() method
standard library
bound method
classmethod descriptor
property class
staticmethod descriptor
uses
Elk
Jigna
SQLAlchemy
validators