Message 75596

Author
nicoe
Date
2022-04-11.15:38:26
Message id
75596

Content

* Cédric Krier  [2022-04-11 12:56 +0200]: 
>
>Cédric Krier <cedric.krier@b2ck.com> added the comment:
>
>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 ...

Of course it's doable.

>> 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.

Abstract away the inner stuffs of werkzeug.
History
Date User Action Args
2022-04-11 15:38:26nicoesetrecipients: + ced
2022-04-11 15:38:26nicoelinkissue11399 messages
2022-04-11 15:38:26nicoecreate

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