Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread Tim Graham
There's a ticket about it: https://code.djangoproject.com/ticket/30949 On Thursday, February 4, 2021 at 5:57:15 AM UTC-5 carlton...@gmail.com wrote: > functools.cached_property is available from Python 3.8. > > https://docs.python.org/3.9/library/functools.html#functools.cached_property > > Is

Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
See the ticket. ‪On Thu, 4 Feb 2021 at 11:03, ‫אורי‬‎ wrote:‬ > Is there any difference in the implementation between the two > *cached_property*? > אורי > u...@speedy.net > > > On Thu, Feb 4, 2021 at 12:57 PM Carlton Gibson > wrote: > >> functools.cached_property is available from Python 3.8.

Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread Carlton Gibson
functools.cached_property is available from Python 3.8. https://docs.python.org/3.9/library/functools.html#functools.cached_property Is there any benefit to maintaining our own version, or should we deprecate django.utils.functional.cached_property() with Django 4.0? Thanks. Carlton -- You

Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread אורי
Is there any difference in the implementation between the two *cached_property*? אורי u...@speedy.net On Thu, Feb 4, 2021 at 12:57 PM Carlton Gibson wrote: > functools.cached_property is available from Python 3.8. > > https://docs.python.org/3.9/library/functools.html#functools.cached_property

Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread Carlton Gibson
Thanks Tim. Trac’s search let me down there. Will review with a mind to accept. On Thu, 4 Feb 2021 at 12:00, Tim Graham wrote: > There's a ticket about it: https://code.djangoproject.com/ticket/30949 > > On Thursday, February 4, 2021 at 5:57:15 AM UTC-5 carlton...@gmail.com > wrote: > >>

Re: @cached_property in admindocs

2021-02-04 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Yes seems reasonable. But why end there, can we not mention every descriptor/attribute? On Thu, 4 Feb 2021 at 14:06, Carlton Gibson wrote: > Hey Nat, I’d agree, probably yes. > > On Wed, 3 Feb 2021 at 15:04, Nat Dunn wrote: > >> From the documentation >>

Re: Deprecating django.utils.functional.cached_property() ?

2021-02-04 Thread Ibrahima Sekou Sissoko
Thanks Le jeu. 4 févr. 2021 à 12:46, Carlton Gibson a écrit : > Thanks Tim. Trac’s search let me down there. > Will review with a mind to accept. > > On Thu, 4 Feb 2021 at 12:00, Tim Graham wrote: > >> There's a ticket about it: https://code.djangoproject.com/ticket/30949 >> >> On Thursday,

Re: @cached_property in admindocs

2021-02-04 Thread Carlton Gibson
Hey Nat, I’d agree, probably yes. On Wed, 3 Feb 2021 at 15:04, Nat Dunn wrote: > From the documentation > : The > models section of the admindocs page describes each model in the system > along with all the fields, properties,

Re: @cached_property in admindocs

2021-02-04 Thread Nat Dunn
Thanks Adam and Carlton. I've submitted a ticket . Nat On Thursday, February 4, 2021 at 9:17:59 AM UTC-5 Adam Johnson wrote: > Yes seems reasonable. But why end there, can we not mention every > descriptor/attribute? > > On Thu, 4 Feb 2021 at