Guido rethinking removal of cmp from sort method
steve+comp.lang.python at pearwood.info
Sat Apr 2 11:39:05 CEST 2011
On Fri, 01 Apr 2011 23:54:53 -0500, harrismh777 wrote:
> It cannot be denied that we are talking exclusively about OOP. End of
Yes it can be denied. You are categorically *wrong*. Python is a multi-
paradigm language that happens to use objects exclusively as its
fundamental data type, but even a cursory look at the language proves
that it is not exclusively OOP.
* procedural style programming (like Pascal or Ada or C);
* imperative programming (like shell scripts);
* functional idioms like lambda, map(), reduce(), list comprehensions
(like Haskell or Lisp);
* alternatives to classes (procedural based programming again).
Important built-ins like len() are not object-oriented; vital commands
like import are statement-based rather than OO.
All data structures and primitives in Python are objects, but the
language is not exclusively object-oriented.
More information about the Python-list