Python Forum
Do all class need constructors?(__init__)
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do all class need constructors?(__init__)
#11
Thank you @snippsat. Now I know what @staticmethod is doing. It's good for writing modules.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: Do all class need constructors?(__init__) - by wavic - Apr-05-2017, 06:24 PM

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
Question __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+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020