3 ms·
The reason there is a distinction in Python between functions and methods is because Python supports multiple paradigms. It doesn't force the programmer into us
by goatlover 9y ago
The reason there is a distinction in Python between functions and methods is because Python supports multiple paradigms. It doesn't force the programmer into using OOP. Sometimes you want a function that doesn't belong to some kind of data type, and sometimes you want to create a new type of data and define methods that work only for it.
- singingfish 9y agoYou make it sound like perl (only perl is more flexible - both its major strength and weakness)