def pop(interp, stackname):
    """
    POP stackname

    outputs the most recently PUSHed member of the stack that is the
    value of the variable whose name is ``stackname`` and removes that
    member from the stack.
    """
    var = interp.get_variable(stackname)
    return var.pop()