def iterdecode(value):
 if (not value):
  return tuple()
 result = []
 accumulator = u''
 escaped = False
 for c in value:
  if (not escaped):
   if (c == CHAR_ESCAPE):
    escaped = True
    continue
   elif (c == CHAR_SEPARATOR):
    result.append(accumulator)
    accumulator = u''
    continue
  else:
   escaped = False
  accumulator += c
 result.append(accumulator)
 return tuple(result)

def iterdecode ( value ) : if ( not value ) : return tuple ( ) result = [ ] accumulator = u'' escaped = False for c in value : if ( not escaped ) : if ( c == CHAR_ESCAPE ) : escaped = True continue elif ( c == CHAR_SEPARATOR ) : result . append ( accumulator ) accumulator = u'' continue else : escaped = False accumulator += c result . append ( accumulator ) return tuple ( result )
decode enumerable from string presentation as a tuple .