https://github.com/python/cpython/commit/b3372481b6cae5766330b041c4622c28cee2119f
commit: b3372481b6cae5766330b041c4622c28cee2119f
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-05-02T16:56:33+03:00
summary:

gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925)

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index e598ef423de497..be3a64cf41b425 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1733,8 +1733,9 @@ are always available.  They are listed here in 
alphabetical order.
    :ref:`function` for details.
 
    A static method can be called either on the class (such as ``C.f()``) or on
-   an instance (such as ``C().f()``). Moreover, they can be called as regular
-   functions (such as ``f()``).
+   an instance (such as ``C().f()``).
+   Moreover, the static method :term:`descriptor` is also callable, so it can
+   be used in the class definition (such as ``f()``).
 
    Static methods in Python are similar to those found in Java or C++. Also, 
see
    :func:`classmethod` for a variant that is useful for creating alternate 
class

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to