[Python-Dev] Class Methods
Thomas Heller
thomas.heller at ion-tof.com
Mon Apr 23 10:17:46 EDT 2001
> > > What I want to avoid is
> > >
> > > class X(...):
> > > ....
> > > initialize(X)
> >
> > Yes! We use this monstrosity a lot in Zope.
> You know Guido's MetaClass article?
>
> I read it (did not understand it completely) and
> I think, automatic initialization at the end of
> class construction would be feasible.
>
Of course it's possible. The problem is that normally
metaclasses are implemented in C (it seems a python
implementation is way to slow for most uses). On the
other hand this is a lot of work, you have to completely
duplicate the whole class/instance/method behaviour
from standard python.
Thomas
More information about the Python-list
mailing list