Bengt Richter wrote: > I wonder if the above common use of super could be implemented as a property > of object, > so you'd normally inherit it and be able to write > self.super.__init__(*args, **kwargs) # (maybe spell it > self.__super__.__init__(...) I suppose) > > I.e., self.__super__ would effectively return the equivalent of > super(type(self), self) > > (I think Michele Simionato may have posted some idea like this early on that > I didn't really follow, but maybe my subconscious snagged and garbled ;-)
Here's the link I believe you're referring to: http://groups-beta.google.com/group/comp.lang.python/msg/0034684c138cf9f3 Probably worth reading for anyone interested in making super syntax "look prettier". Basically Michele shows that the current super() object fails in a number of ways when you try to make it a class attribute. STeVe -- http://mail.python.org/mailman/listinfo/python-list