File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1139,8 +1139,8 @@ If you have ever wondered where *self* comes from in regular methods or where
1139
1139
*cls * comes from in class methods, this is it!
1140
1140
1141
1141
1142
- Static methods
1143
- --------------
1142
+ Other kinds of methods
1143
+ ----------------------
1144
1144
1145
1145
Non-data descriptors provide a simple mechanism for variations on the usual
1146
1146
patterns of binding functions into methods.
@@ -1163,6 +1163,10 @@ This chart summarizes the binding and its two most useful variants:
1163
1163
| classmethod | f(type(obj), \* args) | f(cls, \* args) |
1164
1164
+-----------------+----------------------+------------------+
1165
1165
1166
+
1167
+ Static methods
1168
+ --------------
1169
+
1166
1170
Static methods return the underlying function without changes. Calling either
1167
1171
``c.f `` or ``C.f `` is the equivalent of a direct lookup into
1168
1172
``object.__getattribute__(c, "f") `` or ``object.__getattribute__(C, "f") ``. As a
You can’t perform that action at this time.
0 commit comments