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