#NEWLINE# def get_frame_locals( stepback = 0 ) : #NEWLINE# #INDENT# 'Returns locals dictionary from a given frame.' #NEWLINE# with Frame ( stepback = frame ) as frame : #NEWLINE# #INDENT# locals_dict = frame . f_locals #NEWLINE# #UNINDENT# return locals_dict