def factor_calculate(evaluator, types, operator):
 for typ in types:
  if (operator == '-'):
   if _is_number(typ):
    (yield create(evaluator, (- typ.obj)))
  elif (operator == 'not'):
   value = typ.py__bool__()
   if (value is None):
    return
   (yield create(evaluator, (not value)))
  else:
   (yield typ)

def factor_calculate ( evaluator , types , operator ) : for typ in types : if ( operator == '-' ) : if _is_number ( typ ) : ( yield create ( evaluator , ( - typ . obj ) ) ) elif ( operator == 'not' ) : value = typ . py__bool__ ( ) if ( value is None ) : return ( yield create ( evaluator , ( not value ) ) ) else : ( yield typ )
calculates + .