def with_text(no_text=False, text=False, utext=False):
 values = []
 if no_text:
  values.append(0)
 if text:
  values.append(1)
 if utext:
  values.append(2)
 def set_value(function):
  try:
   function.TEXT.add(values)
  except AttributeError:
   function.TEXT = set(values)
  return function
 return set_value

def with_text ( no_text = False , text = False , utext = False ) : values = [ ] if no_text : values . append ( 0 ) if text : values . append ( 1 ) if utext : values . append ( 2 ) def set_value ( function ) : try : function . TEXT . add ( values ) except AttributeError : function . TEXT = set ( values ) return function return set_value
decorator for benchmarks that use text .