2 ms·
The old-school way to use Thread is to subclass it and override some methods. The post here is describing a setup where you don't override methods, but instead
by nerdponx 5y ago
The old-school way to use Thread is to subclass it and override some methods. The post here is describing a setup where you don't override methods, but instead provide some kind of mixin. I've never seen anyone write this, for example:
class MyThreadImpl:
def run(self):
do_stuff()
class MyThread(Thread, MyThreadImpl):
pass