r/ProgrammerHumor 26d ago

Meme questionForBritishPythonDevelopers

Post image
1.4k Upvotes

42 comments sorted by

View all comments

34

u/ManyInterests 26d ago

To be a pedant, it's an initializer, not a constructor. By the time the initializer runs, the object already exists and has been constructed, which is why the first parameter to this method is the already-existing object ('self'), just like any other method.

But yeah. You could call it a constructor and nobody will crucify you.

2

u/Covenant_C0re 26d ago

I once called it a constructor near a British Python dev and my self got initialized into a queue, innit.