#NEWLINE# def isnpint( ctx , x ) : #NEWLINE# #INDENT# if ( type ( x ) is complex ) : #NEWLINE# #INDENT# if x . imag : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# x = x . real #NEWLINE# #UNINDENT# return ( ( x <= 0.0 ) and ( round ( x ) == x ) )