1 Odpowiedź
0
Yes, you're correct. __new__() creates the instantiated object and then calls __init__(), which is often referred to as being the constructor due to this is where the objects 'self' has its members initialized. The __new__ method is the actual object constructor 'self', but __init__ is the instantiated 'self' constructor.
https://docs.python.org/3/reference/datamodel.html#object.__new__
https://docs.python.org/3/reference/datamodel.html#object.__init__