This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brian.curtin, docs@python, pitrou, r.david.murray, rhettinger, roysmith
Date 2011-01-31.14:40:18
SpamBayes Score 0.14651021
Marked as misclassified No
Message-id <1296484819.03.0.648963830001.issue11073@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-01-31 14:40:19pitrousetrecipients: + pitrou, rhettinger, roysmith, r.david.murray, brian.curtin, docs@python
2011-01-31 14:40:19pitrousetmessageid: <1296484819.03.0.648963830001.issue11073@psf.upfronthosting.co.za>
2011-01-31 14:40:18pitroulinkissue11073 messages
2011-01-31 14:40:18pitroucreate