summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-27 12:13:01 (GMT)
committerGitHub <noreply@github.com>2024-06-27 12:13:01 (GMT)
commit49e5740135670e04ae6da7e6f52dbe380655e0f1 (patch)
tree47423e05c4f054ac6c6f1e7b42986ddb65b5b7d9 /Doc/whatsnew
parentc7d2b2b646f5abdbec501f63ab9b719b3db70a1f (diff)
downloadcpython-49e5740135670e04ae6da7e6f52dbe380655e0f1.zip
cpython-49e5740135670e04ae6da7e6f52dbe380655e0f1.tar.gz
cpython-49e5740135670e04ae6da7e6f52dbe380655e0f1.tar.bz2
[3.13] gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) (#121092)
gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) (cherry picked from commit db96edd6d1a58045196a71aff565743f493b5fbb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.13.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 971f92c..992d39e 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -2250,6 +2250,12 @@ Changes in the Python API
returned by :meth:`zipfile.ZipFile.open` was changed from ``'r'`` to ``'rb'``.
(Contributed by Serhiy Storchaka in :gh:`115961`.)
+* :class:`functools.partial` now emits a :exc:`FutureWarning` when it is
+ used as a method.
+ Its behavior will be changed in future Python versions.
+ Wrap it in :func:`staticmethod` if you want to preserve the old behavior.
+ (Contributed by Serhiy Storchaka in :gh:`121027`.)
+
.. _pep667-porting-notes-py:
* Calling :func:`locals` in an :term:`optimized scope` now produces an