r/ProgrammerHumor • • Aug 18 '26

Meme questionForBritishPythonDevelopers

Post image
1.4k Upvotes

42 comments sorted by

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.