In article <[EMAIL PROTECTED]>,
 "infidel" <[EMAIL PROTECTED]> wrote:

> [ ... ]  type is, from my trivial understanding, the
> base type and base metaclass for everything else in python.  Saying
> "type is an object" is only confusing you into thinking it is a
> subclass of object, which is not the case. 

Sure is:

   >>> type.__bases__
   (<type 'object'>,)

> object is a class, which I
> believe has type as it's metaclass (though I could be mistaken - this
> gets terribly confusing very quickly).

Correct:

   >>> object.__class__
   <type 'type'>

type also has type as its metaclass:

   >>> type.__class__
   <type 'type'>

In other words, type is an instance of itself.

Just
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to