diff options
author | Carl Meyer <carl@oddbird.net> | 2023-07-05 23:01:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 23:01:35 (GMT) |
commit | 838406b4fc044c0b2f397c23275c69f16a76205b (patch) | |
tree | bf782499c256dba23947916be1dcb48df20e202d /Misc | |
parent | 217f47d6e5e56bca78b8556e910cd00890f6f84a (diff) | |
download | cpython-838406b4fc044c0b2f397c23275c69f16a76205b.zip cpython-838406b4fc044c0b2f397c23275c69f16a76205b.tar.gz cpython-838406b4fc044c0b2f397c23275c69f16a76205b.tar.bz2 |
gh-106292: restore checking __dict__ in cached_property.__get__ (#106380)
* gh-106292: restore checking __dict__ in cached_property.__get__
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-07-03-15-09-44.gh-issue-106292.3npldV.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-07-03-15-09-44.gh-issue-106292.3npldV.rst b/Misc/NEWS.d/next/Library/2023-07-03-15-09-44.gh-issue-106292.3npldV.rst new file mode 100644 index 0000000..2335093 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-07-03-15-09-44.gh-issue-106292.3npldV.rst @@ -0,0 +1,4 @@ +Check for an instance-dict cached value in the :meth:`__get__` method of +:func:`functools.cached_property`. This better matches the pre-3.12 behavior +and improves compatibility for users subclassing +:func:`functools.cached_property` and adding a :meth:`__set__` method. |