[Python-Dev] Classes and Metaclasses in Smalltalk

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 02 May 2001 14:48:20 +1200 (NZST)


Guido:

> Except that sometimes you really do want x.__class__.__classdict__ to
> have priority (e.g. for "guarded" attributes).

What's a "guarded" attribute?

> But the issue of backwards compatibility is a big one here

I was thinking that, while this is still in the __future__,
the __dict__ attribute would be a pseudo-dict that, by
default, behaves like the union of the old __dict__ and
the __classdict__.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+