Is Python an object based programming langauge?

WDraxinger at darkstargames.de WDraxinger at darkstargames.de
Mon Mar 11 17:01:48 EST 2002


"Christopher Browne" <cbbrowne at acm.org> schrieb im Newsbeitrag
news:m3lmczavog.fsf at salesman.cbbrowne.com...
> In an attempt to throw the authorities off his trail, drevenhaug at hotmail.com
(Graz Bukanoff) transmitted:
> > Is Python an object based programming langauge?
>
> Most languages involve manipuation of some form of "object," so that
> even COBOL could be claimed to be an "object based programming
> language."
>
> You might want to be more specific about what you mean by "object,"
> otherwise people could say "yes" or "no" with equal legitimacy as they
> intend different meanings of "object."

I think, this statement relies on the fact, that everything in python
ia a Object in the term of an OOP language. Look at the C/C++ API.
Here you've always to deal with a special PyObject* type, that's
always the black box, that makes an variable an object. Data can only
manipulated through special access functions. Since that must also
work with pure C these functions must not be part of the PyObject *,
but the rest of OOP is there.

> --
> (reverse (concatenate 'string "gro.gultn@" "enworbbc"))
> http://www3.sympatico.ca/cbbrowne/wp.html





More information about the Python-list mailing list