def needs_update(targ_capacity, curr_capacity, num_up_to_date):
 return (not (num_up_to_date >= curr_capacity == targ_capacity))

def needs_update ( targ_capacity , curr_capacity , num_up_to_date ) : return ( not ( num_up_to_date >= curr_capacity == targ_capacity ) )
return whether there are more batch updates to do .