(coroutine)
Get the mapping of coroutine local variables to their current values.

    A dict is returned, with the keys the local variable names and values the
    bound values.
Get the mapping of coroutine local variables to their current values.
Get the mapping of coroutine local variables to their current values .
def getcoroutinelocals(coroutine):
    """
    Get the mapping of coroutine local variables to their current values.

    A dict is returned, with the keys the local variable names and values the
    bound values."""
    frame = getattr(coroutine, "cr_frame", None)
    if frame is not None:
        return frame.f_locals
    else:
        return {}
def getcoroutinelocals ( coroutine ) : frame = getattr ( coroutine , "cr_frame" , None ) if frame is not None : return frame . f_locals else : return { }