#NEWLINE# @ lower_builtin ( 'is' , types . EnumMember , types . EnumMember ) #NEWLINE# def enum_is( context , builder , sig , args ) : #NEWLINE# #INDENT# ( tu , tv ) = sig . args #NEWLINE# ( u , v ) = args #NEWLINE# if ( tu == tv ) : #NEWLINE# #INDENT# res = context . generic_compare ( builder , '==' , ( tu . dtype , tv . dtype ) , ( u , v ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res = context . get_constant ( sig . return_type , False ) #NEWLINE# #UNINDENT# return impl_ret_untracked ( context , builder , sig . return_type , res )