have to invoke (Thread.__init__) in my overridden constructor, but why?
Posted
by sia
on Stack Overflow
See other posts from Stack Overflow
or by sia
Published on 2010-05-15T20:55:53Z
Indexed on
2010/05/15
21:04 UTC
Read the original article
Hit count: 207
python
i saw this phrase in python 2.6 man:
class threading.Thread(group=None, target=None, name=None, args=(), kwargs={})
.
.
.
If the subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()
) before doing anything else to the thread.
i just wanna know why?
© Stack Overflow or respective owner