[Python-ideas] staticmethod and classmethod should be callable

Guido van Rossum guido at python.org
Wed Jun 20 14:16:20 EDT 2018

Maybe. Though it has surprised me occasionally that pulling a classmethod
or staticmethod out of the class dict (like in Jeroen's original example)
doesn't work.

On Wed, Jun 20, 2018 at 10:34 AM Serhiy Storchaka <storchaka at gmail.com>

> 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.
> Just "for consistency" is not considered a good reason.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/

--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180620/6817dd56/attachment.html>

More information about the Python-ideas mailing list