> > > 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
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