staticmethod is generally used if you don't want an automatically bound 'self'/'cls' parameter when invoking a method on the type. classmethod just changes WHICH object is used as the "self" parameter. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@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/5EZTQOWS4ANG4XEYP2X3ADOBI3DPGLOI/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: Curious : Why staticmethod if classmethods can do everything a static method can?
- [Python-ideas] Re: Curious : Why staticmethod if c... 2QdxY4RzWzUUiLuE
- [Python-ideas] Re: Curious : Why staticmethod ... Christopher Barker
- [Python-ideas] Re: Curious : Why staticmethod ... Cameron Simpson
- [Python-ideas] Re: Curious : Why staticmet... 2QdxY4RzWzUUiLuE
- [Python-ideas] Re: Curious : Why staticmethod if c... Random832
- [Python-ideas] Re: Curious : Why staticmethod ... Eric V. Smith
- [Python-ideas] Re: Curious : Why staticmet... Steven D'Aprano
- [Python-ideas] Re: Curious : Why stati... Random832
- [Python-ideas] Re: Curious : Why ... Steven D'Aprano
- [Python-ideas] Re: Curious : ... Josh Rosenberg
- [Python-ideas] Re: Curious : Why staticmethod if classm... William Pickard
- [Python-ideas] Re: Curious : Why staticmethod if classm... Guido van Rossum
- [Python-ideas] Re: Curious : Why staticmethod if classm... Ethan Furman