#34270: Use @functools.cache instead of @functools.lru_cache(maxsize=None)
------------------------------------------------+------------------------
Reporter: hugovk | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
`functools.cache` was added in Python 3.9 and returns the same as
`functools.lru_cache(maxsize=None)`
https://docs.python.org/3/library/functools.html#functools.cache
Now Python 3.10 is the lowest supported version for Django 5.0, let's use
the shorter one.
https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-
can-i-use-with-django
--
Ticket URL: <https://code.djangoproject.com/ticket/34270>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070185c4d4f9a6-1b446a33-9103-417c-9939-1257a3feeeff-000000%40eu-central-1.amazonses.com.