Functions vs OOP
steve+comp.lang.python at pearwood.info
Sat Sep 3 18:25:43 CEST 2011
William Gill wrote:
> During some recent research, and re-familiarization with Python, I came
> across documentation that suggests that programming using functions, and
> programming using objects were somehow opposing techniques.
> It seems to me that they are complimentary. It makes sense to create
> objects and have some functions that take those objects as arguments.
Python is a mixed paradigm language, with object, functional and imperative
> Are they suggesting that any function that takes an object as an
> argument should always be a method of that object?
> Am I missing something, or am I taking things too literally?
No, it is the OO purists who are missing something.
More information about the Python-list