def rstr(stri) :
    """ Split the string, evaluates expressions, and reconstruct 
    the result.
    """
    import inspect
    f = inspect.currentframe()
    locals=f.f_back.f_locals
    return "".join(_eval(_split(stri),locals))
 Split the string, evaluates expressions, and reconstruct 
    the result.
    
recipes/Python/578487_Evaluates_string_embedded_expressions_rubstr/recipe-578487.py