def get_value_len(value):
try:<EOL><INDENT>Nvalue = len(value)<EOL><DEDENT>except TypeError:<EOL><INDENT>value = list(value)<EOL>Nvalue = len(value)<EOL><DEDENT>return Nvalue, value<EOL>
Get length of ``value``. If ``value`` (eg, iterator) has no len(), convert it to list first.

return both length and converted value.