-
-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Hi
I've using cached_property since 0.1.5 - I see it's now declared 1.0.0 - I'm using it with python 2.7.8
Well I had some regressions since I started using 1.0.0 - I can't seem to invalidate the cache - either through the way listed on pypy:
del Instance[attribute]
or the old tried and true way which worked when the data was not cached yet:
try:
delattr(instance, pname)
except AttributeError:
pass
As of right now, the only way I could get it to invalidate the cached entries, whether or not they are populated is this:
try:
del instance._cache[pname]
except KeyError as e:
pass
To be clear I haven't been able to clear the cache at all in any other way than the above direct mangling with _cache.
Is this a regression on your side? Is the documentation up to date with how you expect to clear the cache?
I think with something this big, if valid, needs to have the pypy package updated asap!