def get_current_frames ( ) : return dict ( ( thread_id , { 'frame' : thread2list ( frame ) , 'time' : None } ) for thread_id , frame in sys . _current_frames ( ) . items ( ) )
get current threads python
Return current threads prepared for further processing .
def get_current_frames():
    """Return current threads prepared for 
    further processing.
    """
    return dict(
        (thread_id, {'frame': thread2list(frame), 'time': None})
        for thread_id, frame in sys._current_frames().items()
    )