diff --git a/threading/threading.py b/threading/threading.py index e69de29b..003cb907 100644 --- a/threading/threading.py +++ b/threading/threading.py @@ -0,0 +1,15 @@ +import _thread + + +class Thread: + + def __init__(self, group=None, target=None, name=None, args=(), kwargs=None): + self.target = target + self.args = args + self.kwargs = {} if kwargs is None else kwargs + + def start(self): + _thread.start_new_thread(self.run, ()) + + def run(self): + self.target(*self.args, **self.kwargs)