Classes and threading

Adam W. awasilenko at gmail.com
Wed May 19 05:08:24 EDT 2010


On May 19, 4:30 am, Gregory Ewing <greg.ew... at canterbury.ac.nz> wrote:
> 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
>
Amazing, I've never seen *args used before outside of documentation, I
didn't think it was "real" :P  One problem down, still looking for why
printing inside a thread crashes IDLE.




More information about the Python-list mailing list