[Python-3000] PEP for Metaclasses in Python 3000
Thomas Wouters
thomas at python.org
Tue Mar 13 23:57:53 CET 2007
On 3/13/07, BJörn Lindqvist <bjourne at gmail.com> wrote:
>
> On 3/13/07, Guido van Rossum <guido at python.org> 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 :-)
--
Thomas Wouters <thomas at python.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20070313/0c149257/attachment.html
More information about the Python-3000
mailing list