Support cached property with slots
The cached property from standard cpython does not support object with slots (the werkzeug version does if a slots is registered for it).
As almost all the PoolMeta
objects have slots, this prevent to use cached_property
easily. I think we should extend cached_property
to work with objects with slots.
For that I propose to store in a WeakKeyDictionary
the cached value when the instance has not __dict__
.