--
Ticket URL: <https://code.djangoproject.com/ticket/32306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Claude Paroz, Simon Charette (added)
* needs_docs: 0 => 1
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted, but I'm not sure if it's feasible, see Simon's
[https://code.djangoproject.com/ticket/30864#comment:2 comment].
--
Ticket URL: <https://code.djangoproject.com/ticket/32306#comment:1>
* cc: Boris (added)
* version: 3.1 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/32306#comment:2>
* owner: nobody => Boris Trubin
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32306#comment:3>
* Attachment "test.py" added.
Comment (by David Smith):
I fear I misunderstand the issue here, if so I am sorry. Can one of the
existing Python caches be used here?
I've attached a small example where `lru_cache` is used stacked under the
`classproperty` decorator.
{{{
class TestClass:
@classproperty
@lru_cache
def test_property(self):
time.sleep(2)
}}}
In my test case, I see the output as.
{{{
python test.py
0:00:02.002166
0:00:00.000037
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32306#comment:4>
* status: assigned => closed
* needs_docs: 1 => 0
* resolution: => wontfix
* needs_tests: 1 => 0
Comment:
Closing as "wontfix" since it looks unnecessary per
[https://groups.google.com/g/django-developers/c/EY1uHOMqoYk discussion]
and David's [https://code.djangoproject.com/ticket/32306#comment:4
comment]. We can reopen after reaching a strong consensus on
DevelopersMailingList. Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/32306#comment:5>