"Thomas Wouters" <[EMAIL PROTECTED]> wrote: > On 3/13/07, BJorn Lindqvist <[EMAIL PROTECTED]> wrote: > > > > On 3/13/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > > > I find this rather cool looking: > > > > > > > > > > class C(implements=(I1, I2)): ... > > > > > > Me too. :-) > > > Who is the receiver of the implements keyword argument in your > > example? Should it not be class class C(metaclass = SomethingHere, > > implements = (I1, I2))? > > > The receiver in Guido's example is of course the default metaclass, 'type'. > (You can believe either that, or that it's just an example :-)
If I read the proposal correctly, it's actually metaclass.__prepare__, as in metaclass.__prepare__(name, bases, kwargs) . - Josiah _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com