Why does itertools.permutations() return a list of characters or digits for each permutation, instead of just returning a string?
For example:
>&g
itertools.permutations()
simply works this way. It takes an arbitrary iterable as an argument, and always returns an iterator yielding tuples. It doesn't (and shouldn't) special-case strings. To get a list of strings, you can always join the tuples yourself:
list(map("".join, itertools.permutations('1234')))