@memoize
def re_compile(regex, *args):
 if TIMING:
  return TimingRe(re.compile(regex, *args), regex)
 else:
  return re.compile(regex, *args)

@ memoize def re_compile ( regex , * args ) : if TIMING : return TimingRe ( re . compile ( regex , * args ) , regex ) else : return re . compile ( regex , * args )
a version of re .