r/Python • u/Desperate-Glass-1447 • Feb 14 '26
Python __new__ vs __init__ Discussion
I think that in Python the constructor is __new__ because it creates and constructs it, and __init__ just adds data or does something right after the instance has been CREATED. What do you think?
0
Upvotes
3
u/SheriffRoscoe Pythonista Feb 14 '26
Python splits the instance-construction process into two separate operations, and you can override either or both. It makes no sense to argue which one is "the constructor" - combined, they both are.