summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.10.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-11 22:21:22 (GMT)
committerGitHub <noreply@github.com>2021-04-11 22:21:22 (GMT)
commit553ee2781a37ac9d2068da3e1325a780ca79e21e (patch)
tree599710562c5961edb6d7365761da242a8c122680 /Doc/whatsnew/3.10.rst
parent53114ffef1d4facf9aa5545e711abbbda66f672a (diff)
downloadcpython-553ee2781a37ac9d2068da3e1325a780ca79e21e.zip
cpython-553ee2781a37ac9d2068da3e1325a780ca79e21e.tar.gz
cpython-553ee2781a37ac9d2068da3e1325a780ca79e21e.tar.bz2
bpo-43682: Make staticmethod objects callable (GH-25117)
Static methods (@staticmethod) are now callable as regular functions.
Diffstat (limited to 'Doc/whatsnew/3.10.rst')
-rw-r--r--Doc/whatsnew/3.10.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 50c8d53..9f6b7a4 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -623,6 +623,7 @@ Other Language Changes
(:func:`@classmethod <classmethod>`) now inherit the method attributes
(``__module__``, ``__name__``, ``__qualname__``, ``__doc__``,
``__annotations__``) and have a new ``__wrapped__`` attribute.
+ Moreover, static methods are now callable as regular functions.
(Contributed by Victor Stinner in :issue:`43682`.)