[Tutor] Question about Python being object oriented
bob gailer
bgailer at gmail.com
Sun May 9 00:38:49 CEST 2010
On 5/8/2010 12:19 PM, Tino Dai wrote:
> Hi Everybody,
>
> My friend and I were having a disagreement about Python. Has
> Python always been an OO language or was it at one point a procedural
> language like C? Thanks!
OO and procedural are not mutually exclusive!
From http://en.wikipedia.org/wiki/Imperative_programming:
"Procedural programming is imperative programming in which the program
is built from one or more procedures (also known as subroutines or
functions). The terms are often used as synonyms, but the use of
procedures has a dramatic effect on how imperative programs appear and
how they are constructed. Heavily procedural programming, in which state
changes are localized to procedures or restricted to explicit arguments
and returns from procedures, is known as structured programming. From
the 1960s onwards, structured programming and modular programming in
general, have been promoted as techniques to improve the maintainability
and overall quality of imperative programs. Object-oriented programming
extends this approach."
--
Bob Gailer
919-636-4239
Chapel Hill NC
More information about the Tutor
mailing list