def getvalue(x):
if isrepeating(x):<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>"<EOL>% x)<EOL><DEDENT>for value in getvalues(x):<EOL><INDENT>return value<EOL><DEDENT>
Return the single value of x or raise TypError if more than one value.