Special __init__() method

Viewed 121

In python we can access class and object directly without using/initialize __init__ special method? Is __init__ same also a constructor?

1 Answers

In fact it is not a constructor. As it's name says, it's "initializer". In python __new__ constructs the new instances and then __init__ initializes it.

If you don't want to do initialization, you don't need to implement it.

Related