On 17/04/06 Greg Ewing said: > The other possible reason for using super() is so > you don't have to write the name of the base class > into all your inherited method calls. But that's a > separate issue that would be better addressed by a > different mechanism, rather than conflating the > two in super().
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? Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein
pgpjxux05BMqT.pgp
Description: PGP signature
_______________________________________________ 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