Functions vs OOP

Steven D'Aprano steve+comp.lang.python at
Sat Sep 3 12:25:43 EDT 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 mailing list