Timeline for answer to What is the difference between @staticmethod and @classmethod in Python? by Gaurang Shah
Current License: CC BY-SA 4.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 17, 2019 at 22:08 | comment | added | akarilimano |
It's an old post, but more pythonic way to achieve constructor accepting either one or two arguments would be using def __init__(self, first_name, last_name="") instead of classmethod get_person. Also result will be exactly the same in this case.
|
|
| S Apr 16, 2019 at 14:21 | history | suggested | Eucham Yeung | CC BY-SA 4.0 |
delete redundant ':'; format body
|
| Apr 16, 2019 at 6:26 | review | Suggested edits | |||
| S Apr 16, 2019 at 14:21 | |||||
| Oct 10, 2018 at 13:31 | history | edited | Sheldore | CC BY-SA 4.0 |
deleted 2 characters in body
|
| S Mar 21, 2018 at 10:03 | history | suggested | David Collins | CC BY-SA 3.0 |
make code look like code
|
| Mar 21, 2018 at 9:54 | review | Suggested edits | |||
| S Mar 21, 2018 at 10:03 | |||||
| Oct 10, 2017 at 10:10 | history | answered | Gaurang Shah | CC BY-SA 3.0 |