Phillip J. Eby wrote:

> So the subset required is determined entirely by what the class body 
> (and metaclass __new__) require.

Perhaps the PEP should say something to the effect that
get, set and delete need to be implemented in order to
support all the things the class body might want to do,
but a metaclass can omit them if it wants to restrict
what can be done in the class body.

> So the metaclass' __new__ 
> is going to need to read out the contents of the pseudo-dict somehow, or 
> generate alternative contents.

Maybe the PEP should specify a protocol that the
pseudo-dict must provide for doing this, such as an
iteritems() method (or whatever the Py3k equivalent
is).

--
Greg

_______________________________________________
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