Message127601
You don't have to use any staticmethod here (actually, staticmethod is an anti-pattern in Python). Just write:
class Foo():
def __init__(self):
self.thread = Thread(target=self.runner)
self.thread.start()
def runner(self):
# blah, blah, blah |
|
Date |
User |
Action |
Args |
2011-01-31 14:40:19 | pitrou | set | recipients:
+ pitrou, rhettinger, roysmith, r.david.murray, brian.curtin, docs@python |
2011-01-31 14:40:19 | pitrou | set | messageid: <1296484819.03.0.648963830001.issue11073@psf.upfronthosting.co.za> |
2011-01-31 14:40:18 | pitrou | link | issue11073 messages |
2011-01-31 14:40:18 | pitrou | create | |
|