Message390829
This is a significant change to the language.
There should be a PEP, or at the very least a discussion on Python Dev.
There may well be a very good reason why static methods have not been made callable before that you have overlooked.
Changing static methods to be callable will break backwards compatibility for any code that tests `callable(x)` where `x` is a static method.
I'm not saying that making staticmethods callable is a bad idea, just that it needs proper discussion.
https://bugs.python.org/issue20309 was closed as "won't fix". What has changed? |
|
Date |
User |
Action |
Args |
2021-04-12 09:39:25 | Mark.Shannon | set | recipients:
+ Mark.Shannon, rhettinger, mark.dickinson, vstinner, methane, serhiy.storchaka |
2021-04-12 09:39:25 | Mark.Shannon | set | messageid: <1618220365.05.0.865840717178.issue43682@roundup.psfhosted.org> |
2021-04-12 09:39:25 | Mark.Shannon | link | issue43682 messages |
2021-04-12 09:39:24 | Mark.Shannon | create | |
|