An object is an instance (or not)?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jan 28 02:55:42 EST 2015


Ben Finney wrote:

> * In the distant past of Python, some objects were not instances of any
> class; the terminology in the documentation and messages shows some
> confusing legacies from that ancient time.


I presume you are referring to the type/class distinction?

That is, in Python 1.5 (for example), the *instance* 23 was an instance of 
the *type* int but not of any class, as classes (created with the "class" 
keyword) were distinct from types.

If you mean something else, can you explain please?


-- 
Steve




More information about the Python-list mailing list