Michael P. Soulier wrote:
Why the difference? Is Python portability overrated? Is this a bug?
Certainly a bug - but not in python. The super-method works for new-style classes only.
The attached script reproduces your observed behaviour. So kit seems that whatever toolkit you use, it uses new-style classes on windows, and old-style ones on linux.
Regards, Diez
class Foo(object): def __init__(self): print "I'm Foo" class Bar: def __init__(self): print "I'm Bar" class SubFoo(Foo): def __init__(self): super(SubFoo, self).__init__() class SubBar(Bar): def __init__(self): super(SubBar, self).__init__() SubFoo() SubBar()
-- http://mail.python.org/mailman/listinfo/python-list