Timeline for answer to What is the difference between @staticmethod and @classmethod in Python? by Du D.
Current License: CC BY-SA 4.0
Post Revisions
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 5, 2024 at 19:30 | history | edited | Du D. | CC BY-SA 4.0 |
deleted 39 characters in body
|
| Jul 30, 2024 at 12:27 | history | edited | danronmoon | CC BY-SA 4.0 |
Grammar
|
| Mar 9, 2023 at 14:02 | comment | added | Mehdi | why even bother with the decorator in that case, your description does not really clarify | |
| Nov 23, 2022 at 21:38 | comment | added | Zachiah | I hope by "move" you don't mean "copy" lol | |
| Oct 8, 2021 at 0:14 | history | edited | Du D. | CC BY-SA 4.0 |
added 10 characters in body
|
| Nov 12, 2019 at 22:55 | comment | added | avpaderno |
cls._counter would still be cls._counter even if the code is put in a different class, or the class name is changed. Apple._counter is specific for the Apple class; for a different class, or when the class name is changed, you would need to change the referenced class.
|
|
| Oct 11, 2019 at 10:38 | comment | added | Robert Nowak | what would be the advantage of classmethod and cls._counter vs. staticmethod and Apple._counter | |
| Feb 5, 2018 at 14:45 | history | edited | Du D. | CC BY-SA 3.0 |
added 3 characters in body
|
| Jul 5, 2017 at 12:34 | history | edited | Du D. | CC BY-SA 3.0 |
added 75 characters in body
|
| Jan 10, 2017 at 13:27 | history | edited | Du D. | CC BY-SA 3.0 |
added 10 characters in body
|
| Dec 15, 2016 at 15:33 | history | edited | Du D. | CC BY-SA 3.0 |
added 63 characters in body
|
| Sep 21, 2016 at 18:40 | history | edited | Du D. | CC BY-SA 3.0 |
added 55 characters in body
|
| Sep 2, 2016 at 12:41 | history | edited | Du D. | CC BY-SA 3.0 |
added 209 characters in body
|
| S Jul 1, 2016 at 17:24 | history | edited | Cilyan | CC BY-SA 3.0 |
Errata fix and more
|
| S Jul 1, 2016 at 17:24 | history | suggested | boardrider | CC BY-SA 3.0 |
Errata fix
|
| Jul 1, 2016 at 17:08 | review | Suggested edits | |||
| S Jul 1, 2016 at 17:24 | |||||
| Apr 22, 2016 at 15:40 | history | answered | Du D. | CC BY-SA 3.0 |