def rcompile(pattern, flags=0, verbose=False):
 if (not isinstance(pattern, string_type)):
  return pattern
 if verbose:
  flags |= re.VERBOSE
 return re.compile(pattern, (re.UNICODE | flags))

def rcompile ( pattern , flags = 0 , verbose = False ) : if ( not isinstance ( pattern , string_type ) ) : return pattern if verbose : flags |= re . VERBOSE return re . compile ( pattern , ( re . UNICODE | flags ) )
a wrapper for re .