[issue11073] threading.Thread documentation can be improved
Antoine Pitrou
report at bugs.python.org
Mon Jan 31 15:40:19 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
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
----------
nosy: +pitrou
resolution: -> works for me
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11073>
_______________________________________
More information about the Python-bugs-list
mailing list