MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xx85bl/pythonbrosdontmessaround/19sp587vh1kmb/
r/ProgrammerHumor • u/Recent-Analysis-6880 • 11d ago
20 comments sorted by
View all comments
43
Ooo nows my chance to be pedantic!
Uhm, aykshually, new is the constructor and init initializes it afterwards.
13 u/KinkyTugboat 11d ago This is a constructor, new?💋 4 u/jahinzee 10d 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
13
This is a constructor, new?
💋
4
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
View all comments
43
u/DesertGoldfish 11d ago
Ooo nows my chance to be pedantic!
Uhm, aykshually, new is the constructor and init initializes it afterwards.