Message388281
I think there isn't any error. Please look at the example provided in the guide:
class E:
@staticmethod
def f(x):
print(x)
>>> E.f(3)
3
If it were as you say, method would receive two arguments - f(E, 3) - which is wrong. |
|
Date |
User |
Action |
Args |
2021-03-08 18:49:24 | kamilturek | set | recipients:
+ kamilturek, rhettinger, docs@python, marcosmodenesi |
2021-03-08 18:49:24 | kamilturek | set | messageid: <1615229364.29.0.5763167686.issue43427@roundup.psfhosted.org> |
2021-03-08 18:49:24 | kamilturek | link | issue43427 messages |
2021-03-08 18:49:24 | kamilturek | create | |
|