Message 75591

Author
ced
Date
2022-04-11.12:56:19
Message id
75591

Content

On 2022-04-11 12:38, Nicolas Évrard wrote:
> >Cédric Krier <cedric.krier@b2ck.com> added the comment:
> >
> >`invalidate_cached_property` was only added in version 1.0.0 of werkzeug but I
> >think it is fine if for 6.4 we start requiring at least this version.
> 
> But it was removed in version 2.1.

I see no problem:

if invalidate_cached_property:
    invalidate_cached_property(...)
else:
    del ...

> I think it's more clever to vendor cached_property with a support for del and
> remove it once we drop python3.7.

I do not see the point to maintain it as we already have it in werkzeug.
History
Date User Action Args
2022-04-11 12:56:19cedsetrecipients: + nicoe
2022-04-11 12:56:19cedlinkissue11399 messages
2022-04-11 12:56:19cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)