def explode_tokens(tokenlist):
 if getattr(tokenlist, u'exploded', False):
  return tokenlist
 result = []
 for (token, string) in tokenlist:
  for c in string:
   result.append((token, c))
 return _ExplodedList(result)

def explode_tokens ( tokenlist ) : if getattr ( tokenlist , u'exploded' , False ) : return tokenlist result = [ ] for ( token , string ) in tokenlist : for c in string : result . append ( ( token , c ) ) return _ExplodedList ( result )
turn a list of tuples into another list where each string is exactly one character .