[Python-ideas] Thread.__init__ should call super()

Antoine Pitrou solipsis at pitrou.net
Sat Oct 28 12:41:54 EDT 2017


On Fri, 27 Oct 2017 13:59:01 -0700
Ilya Kulakov <kulakov.ilya at gmail.com>
wrote:
> Since one of the legit use-cases of using the Thread class is subclassing,
> I think it's __init__ should call super() to support cooperative inheritance.

Not to derail this thread, but I find it much clearer to use the
functional form of the Thread class, i.e. to pass the `target` and
`args` constructor parameters.

Regards

Antoine.




More information about the Python-ideas mailing list