[Types-sig] Re: Meta-classes discussion starter
Donald Beaudry
Donald Beaudry <donb@tensilica.com>
Tue, 01 Dec 1998 10:36:40 -0500
Just van Rossum <just@letterror.com> wrote,
> > JvR> (If anyone wants
> > JvR> to play, I could post a patch.)
> >
> >Yes, please do!
>
> See below... It's a against the current state of Python 1.5.2b1. It should
> be 100% compatible with the existing hooks (ie. I tried carefully not to
> break things).
It's interesting to note that a patch is not necessary. All you need is
an extension module that exports a hand written meta-class. This
meta-class can then poke into the class that's being defined and check
for the existence of the __class__ attribute.
been-there-done-that-ly y'rs,
--Don