style question: anything wrong with super(type(self), self).f() ?
Delaney, Timothy (Tim)
tdelaney at avaya.com
Mon Sep 19 18:17:10 EDT 2005
As Tom said, using super(type(self), self) will fail when your class
gets subclassed. Otherwise we wouldn't have needed that kind of syntax
in the first place.
You may be interested in my self.super recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286195
and the considerably faster version available at:
http://members.optusnet.com.au/tcdelaney/python.html#autosuper
Tim Delaney
More information about the Python-list
mailing list