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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to