property problems

Antonio Cuni TOGLIMIcuni at programmazione.it
Thu Nov 14 18:23:58 EST 2002


Alex Martelli wrote:

> What really determines if x is a new-style class is x's metaclass,
> and rather than inheriting it from x's base (which is the normal
> way to do it) you may alternatively choose to assert it explicitly
> by a __metaclass__ attribute in class scope (or a global variable
> __metaclass__ in module scope if x has no bases).  x is new-style
> iff x's metaclass is the built-in type object named 'type'.
 
uhm... type inherit from object, but object's metaclass is type: isn't 
there a recursion problem?

ciao Anto
PS & OT: what's the english for "circolo vizioso"?
-- 
"Computer science is not about computers any more than astronomy
is about telescopes." -- EW Dijkstra



More information about the Python-list mailing list