Everything is an object in python - object class and type class

Eddilbert Macharia edd.cowan at gmail.com
Wed Jun 3 09:17:16 EDT 2015


Hello guys, 

After i read http://python-history.blogspot.com/2009/02/first-class-everything.html .

where Guidos says "One of my goals for Python was to make it so that all objects were "first class." By this, I meant that I wanted all objects that could be named in the language (e.g., integers, strings, functions, classes, modules, methods, etc.) to have equal status. That is, they can be assigned to variables, placed in lists, stored in dictionaries, passed as arguments, and so forth."

I think i was right to say:

*** in python object and instance of a class are entirely different things.

in OOP and python - object is a representation of a real thing, or a concept .e.g a person,number and the concept of classes- which is the concept of create/representing other objects using a programming language to the machine.

class - This is what is used to create/represent objects in the machine using a programming language

class instance - This is the output of the classes this is a representation of an object.



More information about the Python-list mailing list