Thread.__init__() not called

David Fisher python at rose164.wuh.wustl.edu
Wed Mar 15 02:15:21 CET 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