[Python-checkins] bpo-43427: Separte the method overview from the static method specifics. (GH-24787) (GH-24849)

rhettinger webhook-mailer at python.org
Sat Mar 13 21:31:44 EST 2021


https://github.com/python/cpython/commit/45d9c8cda3db7da9fe209bd215ec9a120265ee65
commit: 45d9c8cda3db7da9fe209bd215ec9a120265ee65
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2021-03-13T18:31:33-08:00
summary:

bpo-43427:  Separte the method overview from the static method specifics. (GH-24787) (GH-24849)

files:
M Doc/howto/descriptor.rst

diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 0f999c95596aa..032d08009f442 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -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



More information about the Python-checkins mailing list