[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ideas
Subject:    [Python-ideas] staticmethod vs classmethod [was: Add a decorators called @staticproperty]
From:       Ethan Furman <ethan () stoneleaf ! us>
Date:       2021-12-19 17:41:34
Message-ID: 92527b74-0b51-8c59-f6ca-f6d2d2fbb5a2 () stoneleaf ! us
[Download RAW message or body]

On 12/19/21 5:40 AM, Serhiy Storchaka wrote:

 > classmethod supersedes staticmethod. It was not clearly known when they
 > were introduced, but now we see that there is very few use cases for
 > staticmethod which cannot be replaced by classmethod (actually only one
 > specific case).

What is the one case?

--
~Ethan~
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/MQUOJUMWEDG5B3J3H3UAD5ULFZCWLI3L/
 Code of Conduct: http://python.org/psf/codeofconduct/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic