#NEWLINE# def pos_neg_vals( self , vals ) : #NEWLINE# #INDENT# vals = list ( vals ) #NEWLINE# pos = [ ( v , c ) for ( v , c ) in vals if ( c > 0 ) ] #NEWLINE# neg = [ ( v , 0 ) for ( v , c ) in vals if ( c == 0 ) ] #NEWLINE# return ( pos , neg )