summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-07-05 23:01:35 (GMT)
committerGitHub <noreply@github.com>2023-07-05 23:01:35 (GMT)
commit838406b4fc044c0b2f397c23275c69f16a76205b (patch)
treebf782499c256dba23947916be1dcb48df20e202d /Misc
parent217f47d6e5e56bca78b8556e910cd00890f6f84a (diff)
downloadcpython-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.rst4
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.