#NEWLINE# def extract_vars_above( * names ) : #NEWLINE# #INDENT# "Extract a set of variables by name from another frame.\n\n    Similar to extractVars(), but with a specified depth of 1, so that names\n    are exctracted exactly from above the caller.\n\n    This is simply a convenience function so that the very common case (for us)\n    of skipping exactly 1 frame doesn't have to construct a special dict for\n    keyword passing." #NEWLINE# callerNS = sys . _getframe ( 2 ) . f_locals #NEWLINE# return dict ( ( ( k , callerNS [ callerNS ] ) for k in names ) )