[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)
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
> 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
> Code of Conduct: http://python.org/psf/codeofconduct/
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas