#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# when_strs = [ ( 'WHEN %s THEN %s' % ( test , result ) ) for ( test , result ) in self . when_tuples ] #NEWLINE# return ( 'CASE(%s ELSE %s)' % ( ' ' . join ( when_strs ) , self . else_expr ) )