Changes between Initial Version and Version 2 of Ticket #35743


Ignore:
Timestamp:
Sep 8, 2024, 9:14:22 AM (2 months ago)
Author:
Jae Hyuck Sa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35743

    • Property Owner set to Jae Hyuck Sa
    • Property Status newassigned
  • Ticket #35743 – Description

    initial v2  
    11I would like to propose an enhancement to Django's cached_property. Currently, cached_property does not provide a built-in way to clear its cached value from an instance. To reset the cached value, developers must manually delete the property from the instance's __dict__.
    22
    3 This proposal was inspired by a suggestion made by Jacob Tyler Walls on [this pull request](https://github.com/django/django/pull/18534#:~:text=5%20days%20ago-,jacobtylerwalls%20reviewed%204%20days%20ago,-View%20reviewed%20changes), where it was recommended to expose this functionality on cached_property rather than implementing it individually for each property.
     3This proposal was inspired by a suggestion made by Jacob Tyler Walls on this pull request(https://github.com/django/django/pull/18534#:~:text=5%20days%20ago-,jacobtylerwalls%20reviewed%204%20days%20ago,-View%20reviewed%20changes), where it was recommended to expose this functionality on cached_property rather than implementing it individually for each property.
    44
    55By incorporating this functionality, developers can avoid implementing custom methods for each property, which will promote cleaner and more maintainable code.
Back to Top