In article <[email protected]>, Christian Heimes <[email protected]> wrote: >> >> class nThread(threading.Thread): >> def __init__(self, *args, **kwds): >> threading.Thread.__init__(self, *args, **kwds) >> # your other stuff here > >Since Thread is a new style class, this should read: > >class NThread(threading.thread): > def __init__(self, *args, **kwargs): > super(NThread, self).__init__(*args, **kwargs)
"Should" is too strong. There are plenty of reasons for wanting to avoid the mess of super(). -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ f u cn rd ths, u cn gt a gd jb n nx prgrmmng. -- http://mail.python.org/mailman/listinfo/python-list
