]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43427: Separte the method overview from the static method specifics. (GH-24787...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Mar 2021 02:31:33 +0000 (18:31 -0800)
committerGitHub <noreply@github.com>
Sun, 14 Mar 2021 02:31:33 +0000 (18:31 -0800)
Doc/howto/descriptor.rst

index 0f999c95596aafe51cc37d221efb286c896ce1f6..032d08009f44281162ecd42f4b30edd5c38acd75 100644 (file)
@@ -1129,8 +1129,8 @@ If you have ever wondered where *self* comes from in regular methods or where
 *cls* comes from in class methods, this is it!
 
 
-Static methods
---------------
+Other kinds of methods
+----------------------
 
 Non-data descriptors provide a simple mechanism for variations on the usual
 patterns of binding functions into methods.
@@ -1153,6 +1153,10 @@ This chart summarizes the binding and its two most useful variants:
       | classmethod     | f(type(obj), \*args) | f(cls, \*args)   |
       +-----------------+----------------------+------------------+
 
+
+Static methods
+--------------
+
 Static methods return the underlying function without changes.  Calling either
 ``c.f`` or ``C.f`` is the equivalent of a direct lookup into
 ``object.__getattribute__(c, "f")`` or ``object.__getattribute__(C, "f")``. As a