Recently, I saw someone talking about a __new__
method and read an article about it. ( I always used __init__
before and never knew about __new__
) The article explained that the __new__
method was called when an object is created and the __init__
method will be called to initialize the object.
What is the difference? What does it mean to initialize the object?