[Python-ideas] staticmethod and classmethod should be callable
Serhiy Storchaka
storchaka at gmail.com
Thu Jun 21 04:33:24 EDT 2018
21.06.18 10:45, Jeroen Demeyer пише:
> On 2018-06-20 19:33, Serhiy Storchaka wrote:
>> 20.06.18 12:56, Jeroen Demeyer пише:
>>> Are there any reasons to *not* make staticmethod and classmethod
>>> callable?
>>
>> There were no reasons to make staticmethod and classmethod callable.
>
> You have to compare the advantages of making them callable vs. the
> advantages of *not* making them callable.
You have also to weight the disadvantages of making them callable and
the cost of making them callable.
> I think that consistency *is* good to have, so I consider that one
> reason to make them callable. Are there any reasons for *not* making
> them callable?
Status quo wins.
More information about the Python-ideas
mailing list