()
Return the current Thread object, corresponding to the caller's thread of control.

    If the caller's thread of control was not created through the threading
    module, a dummy thread object with limited functionality is returned.
Return the current Thread object, corresponding to the caller's thread of control.
Return the current Thread object corresponding to the caller s thread of control .
def current_thread():
    """Return the current Thread object, corresponding to the caller's thread of control.

    If the caller's thread of control was not created through the threading
    module, a dummy thread object with limited functionality is returned.

    """
    try:
        return _active[get_ident()]
    except KeyError:
        return _DummyThread()
def current_thread ( ) : try : return _active [ get_ident ( ) ] except KeyError : return _DummyThread ( )