#NEWLINE# def traverse_local_prefs( stepback = 0 ) : #NEWLINE# #INDENT# 'Generator to walk through variables considered as preferences\n    in locals dict of a given frame.\n\n    ' #NEWLINE# locals_dict = get_frame_locals ( ( stepback + 1 ) ) #NEWLINE# for k in locals_dict : #NEWLINE# #INDENT# if ( ( not k . startswith ( '_' ) ) and ( k . upper ( ) == k ) ) : #NEWLINE# #INDENT# ( yield ( stepback , locals_dict ) )