Opened 7 years ago

Last modified 3 days 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: Accepted
Has patch: yes 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, 7 years ago

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