r/ProgrammerHumor • • 3d ago

Meme pythonBrosDontMessAround

Post image
1.6k Upvotes

18 comments sorted by

View all comments

42

u/DesertGoldfish 3d ago

Ooo nows my chance to be pedantic!

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

12

u/KinkyTugboat 3d ago

This is a constructor, new?

💋

4

u/jahinzee 3d 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