Thread.__init__() not called

David Fisher python at rose164.wuh.wustl.edu
Tue Mar 14 20:15:21 EST 2000


Woops!  Right after I send the first message I realized I'd forgotten my
self.

> class SimpleThread(threading.Thread):
>     def __init__(self,inOtherInfo):
>         self.theOtherInfo = inOtherInfo
>         print "setting other info to '" + self.theOtherInfo + "'"
>         threading.Thread.__init__(self)
                                                   ^^^
dnf





More information about the Python-list mailing list