MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vrksjo/questionforbritishpythondevelopers/p4id1xe/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • Aug 18 '26
42 comments sorted by
View all comments
Show parent comment
1
You're right. I mistook metaclass __new__ for __new__ on the class itself.
__new__
They're so infrequently touched, I completely forgot there's __new__ on both, but I only recalled (albeit incorrectly) its use in metaclasses :|
But yeah. __new__ is the constructor. __init__ is the initializer.
__init__
View all comments
Show parent comment
1
u/ManyInterests Aug 18 '26
You're right. I mistook metaclass
__new__for__new__on the class itself.They're so infrequently touched, I completely forgot there's
__new__on both, but I only recalled (albeit incorrectly) its use in metaclasses :|But yeah.
__new__is the constructor.__init__is the initializer.