Michael P. Soulier wrote: > Although you do have to put the current class name in the method calls, as > super() requires it as the first argument. I never understood that. Why would > I wish to use super(Bar) if I'm in class Foo? Cannot Foo be implied here?
The problem is that there's no way for Python to know which class the method is "in", in the sense required here. That could be fixed by giving functions defined inside a class statement an attribute referring back to the class. It would create a circular reference, but that's not so much of a problem these days. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com