Opened 5 years ago

Last modified 15 months ago

#30949 assigned Cleanup/optimization

use functools.cached_property over django.utils.functional.cached_property where available (py3.8+) — at Version 1

Reported by: Thomas Grainger Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords:
Cc: Adam Johnson Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adam Johnson)

functools gains cached_property in Python 3.8: https://bugs.python.org/issue21145

django.utils.functional.cached_property should import it and deprecate its own implementation

Change History (1)

comment:1 by Adam Johnson, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top