A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/104251.html below:

[Python-Dev] Class Methods

[Python-Dev] Class Methods [Python-Dev] Class MethodsThomas 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4