def check_negative_indices(*nodes):
 for node in nodes:
  if ((node is None) or ((not isinstance(node.constant_result, _py_int_types)) and (not isinstance(node.constant_result, float)))):
   continue
  if (node.constant_result < 0):
   warning(node.pos, "the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined", level=1)

def check_negative_indices ( * nodes ) : for node in nodes : if ( ( node is None ) or ( ( not isinstance ( node . constant_result , _py_int_types ) ) and ( not isinstance ( node . constant_result , float ) ) ) ) : continue if ( node . constant_result < 0 ) : warning ( node . pos , "the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined" , level = 1 )
raise a warning on nodes that are known to have negative numeric values .