(reasons to use a custom dict, other than ordering)
> > (1)  immutable class dictionaries.  These are typical for
> > extension classes, but a real pain for python classes.

> > (2)  almost-immutable -- with callbacks when values are
> > added/changed/deleted.

> > (3)  actually-private variables

On 3/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Those look like use cases for metaclasses, but I don't see how
> they require setting a custom dict *while the class suite is being
> executed*.

I was thinking too much of attempts to subclass module.  The newly
created objects retain a reference to the original dictionary as their
globals.  I should at least have made that assumption clear.

-jJ
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to