Apr-05-2017, 06:24 PM
Thank you @snippsat. Now I know what @staticmethod is doing. It's good for writing modules.
Do all class need constructors?(__init__)
|
Apr-05-2017, 06:24 PM
Thank you @snippsat. Now I know what @staticmethod is doing. It's good for writing modules.
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Initiating an attribute in a class __init__: question | billykid999 | 8 | 3,028 |
May-02-2023, 09:09 PM Last Post: billykid999 |
|
![]() |
__init__ of Child Class | zero_fX0 | 4 | 5,890 |
Mar-22-2023, 05:23 PM Last Post: deanhystad |
Python class doesn't invoke setter during __init__, not sure if's not supposed to? | mtldvl | 2 | 5,209 |
Dec-30-2021, 04:01 PM Last Post: mtldvl |
|
Not including a constructor __init__ in the class definition... | bytecrunch | 3 | 18,924 |
Sep-02-2021, 04:40 AM Last Post: deanhystad |
|
" Run constructors" instead of the correct line | MaartenRo | 2 | 2,606 |
Aug-28-2020, 07:19 AM Last Post: MaartenRo |
|
Why is there an __init__ statement within the __init__ definition | iFunKtion | 7 | 7,474 |
Feb-06-2017, 07:31 PM Last Post: Larz60+ |