#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# if self . gens : #NEWLINE# #INDENT# return '*' . join ( [ ( '%s**%s' % ( gen , exp ) ) for ( gen , exp ) in zip ( self . gens , self . exponents ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s(%s)' % ( self . __class__ . __name__ , exp . exponents ) )