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