Issue 9277

Title
Replace cached-property by stdlib version
Priority
feature
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
easy, review

Created on 2020-04-28.23:33:48 by ced, last changed 12 months ago by roundup-bot.

Messages

New changeset a1c8d243aa25 by Cédric Krier in branch 'default':
Add cached_property in tools
https://hg.tryton.org/tryton-env/rev/a1c8d243aa25
New changeset 1d5e395372fe by Cédric Krier in branch 'default':
Add cached_property in tools
https://hg.tryton.org/trytond/rev/1d5e395372fe
New changeset d987e3841197 by Cédric Krier in branch 'default':
Add cached_property in tools
https://hg.tryton.org/modules/edocument_uncefact/rev/d987e3841197
New changeset 53cce9a80a15 by Cédric Krier in branch 'default':
Add cached_property in tools
https://hg.tryton.org/modules/account_asset/rev/53cce9a80a15
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-04-28.23:33:47
Some modules are using cached-property module. But since Python 3.8, functools has such feature: https://docs.python.org/3.8/library/functools.html#functools.cached_property
I think we can use it if available and do nothing for older version (using fake decorator). This will reduce the dependencies and so ease maintenance.
History
Date User Action Args
2020-06-17 00:34:05roundup-botsetmessages: + msg58748
2020-06-17 00:34:01roundup-botsetmessages: + msg58747
2020-06-17 00:33:58roundup-botsetmessages: + msg58746
2020-06-17 00:33:54roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg58745
2020-06-16 16:09:34cedlinkissue9422 superseder
2020-06-16 15:16:04cedlinkissue9421 superseder
2020-06-16 09:29:15reviewbotsetmessages: + msg58721
2020-06-15 23:27:27reviewbotsetnosy: + reviewbot
messages: + msg58720
2020-06-15 23:08:35cedsetstatus: unread -> testing
reviews: 299951002
component: + trytond
keyword: + review
assignedto: ced
2020-04-28 23:33:53cedsetkeyword: + easy

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