Opened 19 months ago

Last modified 9 months ago

#30127 new Cleanup/optimization

Deprecate cached_property's name argument

Reported by: Tim Graham Owned by: nobody
Component: Utilities Version: 2.1
Severity: Normal Keywords: 4.0
Cc: Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django 2.2 is the last version to support Python 3.5 where cached_property's name argument is required. Following the release of Django 4.0, most apps will drop support for Django 2.2 (and hence Python 3.5), so Django 4.0 can deprecate the name argument without giving warnings that aren't actionable as long as apps want to keep support for Python 3.5.

Change History (1)

comment:1 Changed 9 months ago by Thomas Grainger

it may be worth deprecating it entirely for a py3 backport https://code.djangoproject.com/ticket/30949#ticket

Note: See TracTickets for help on using tickets.
Back to Top