Create a thread using a class constructor as function
Question: I know that I can create and start a thread in Python using the following
syntax:

    
    
    import threading
    
    tracker_thread = threading.Thread(target=func, args=(x,y,z))
    tracker_thread.daemon = True
    tracker_thread.start()
    

What I need is to use a class constructor as `target`. I know that a solution
for this is the following:

    
    
    def wrap_function(x,y,z):
        MyClas(x,y,z)
    
    tracker_thread = threading.Thread(target=wrap_function, args=(x,y,z))
    

But I am trying to avoid the use of a similar "wrap function", by using only
the constructor in the initialization of `Thread`.

How can I do this?


Answer: Solved. The simplest solution is always the best:

    
    
    tracker_thread = threading.Thread(target=MyClass, args=(x,y,z))
    

Thanks to [Sir_FZ](http://stackoverflow.com/users/3572366/sir-fz) for the
comment.

