def process_result(method, result):
 if (method.post_process_func is not None):
  result = method.post_process_func(result)
 if method.boolean:
  if (result in [1, '1']):
   result = True
  elif (result in [0, '0']):
   result = False
 return result

def process_result ( method , result ) : if ( method . post_process_func is not None ) : result = method . post_process_func ( result ) if method . boolean : if ( result in [ 1 , '1' ] ) : result = True elif ( result in [ 0 , '0' ] ) : result = False return result
process given c{b{result}} based on flags set in c{b{method}} .