DEV Community

Discussion on: Python: __init__() is not the only constructor

Collapse
 
leelilly profile image
Lee-Lilly-FIR

Depends on how you use "cls", when you use "cls".
"init(self)" : instantiate a class.
"new(cls)": could be equal to a decorative method, that is allowed to be used/called before initiating a class self.