Ulrich Eckhardt wrote:
> No, as this one doesn't give me a handle to the thread. I also find this
> barely readable, for sure it doesn't beat the readability of the proposed
> function.

Roll your own convenient function, though. :) At work we have this short
function in our tool box:

def daemonthread(target, name=None, autostart=True, args=(), kwargs=None):
    """Start a thread as daemonic thread
    """
    thread = Thread(target=target, name=name, args=args, kwargs=kwargs)
    thread.setDaemon(True)
    if autostart:
        thread.start()
    return thread

Christian

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to