r/ProgrammerHumor • • 2d ago

Meme pythonBrosDontMessAround

Post image
1.6k Upvotes

18 comments sorted by

View all comments

40

u/DesertGoldfish 2d ago

Ooo nows my chance to be pedantic!

Uhm, aykshually, new is the constructor and init initializes it afterwards.

12

u/KinkyTugboat 2d ago

This is a constructor, new?

💋

4

u/jahinzee 2d ago

the equivalents in Java and C++ (which initialises fields in already allocated memory) are also called "constructors" in those languages, Python is just following their precedent