Classes and threading
Christian Heimes
lists at cheimes.de
Wed May 19 05:43:49 EDT 2010
> Or if you do need to override it for some reason, you
> need to accept the extra args and pass them on:
>
> 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)
Christian
More information about the Python-list
mailing list