is python Object oriented??

M Kumar tomanishkb at
Thu Jan 29 14:58:29 CET 2009

but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are available).
does it mean anything to this topic. Is it necessory to have __module__,
__dict__ and __bases__ for a class object in python?

On Thu, Jan 29, 2009 at 5:21 PM, Tino Wildenhain <tino at> wrote:

> Muriel de Souza Godoi wrote:
>> Python offers support for object orientation, but it's not an
>> object-oriented language.
>> I mean, you can code a entire program in Python with no classes. So you
>> use it if you want to.
>> It's not like java, which you must use a class to code a Hello World, but
>> Java isn't fully object-oriented, because it doesn't provide support for
>> multiple inheritance and it has primitive types (multiple interfaces and
>> wrappers to primitive types doesn't count  :) )
>> AFAIK, the unique fully object oriented languagem is Smaltalk. (maybe
>> Simula?), where everything is a class, even the primitive types.
> well actually except keywords, everything is an object in python too,
> including of course primitive types (if you say so - practically python
> does not have them).
> Regards
> Tino


Maneesh KB

Comat Technologies


Mob: 9740-192309

We work with the underprivileged and in rural India. If you are interested
to be a part of it, please mail or call me. I will be happy to share and
inform -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list