#NEWLINE# def supershapes_dict( ) : #NEWLINE# #INDENT# 'Return a dict of all supershapes in this module keyed by name.' #NEWLINE# current_module = sys . modules [ __name__ ] #NEWLINE# supershapes = dict ( ) #NEWLINE# for ( name , obj ) in inspect . getmembers ( current_module ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( issubclass ( obj , _SuperShape ) and ( supershapes [ 0 ] != '_' ) ) : #NEWLINE# #INDENT# supershapes [ name ] = obj ( ) #NEWLINE# #UNINDENT# #UNINDENT# except TypeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return supershapes