is python Object oriented??

Veerendra Ganiger veerendra.cse at
Fri Jan 30 15:43:10 CET 2009

Python is not purely object oriented programming, because we can write
functions without any class.
You are right, predefined class attributes are available when we write or
execute a piece of python code without defining class, that means it's just
using objects for it's purpose. It does not mean its purely object oriented.

It all depends on implementation, I think even we can make "C" object
oriented with proper implementation.

On Thu, Jan 29, 2009 at 7:28 PM, M Kumar <tomanishkb at> wrote:

> 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
> --
> Regards,
> Maneesh KB
> Comat Technologies
> Bangalore
> 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