On 4/13/06, Ian Bicking <[EMAIL PROTECTED]> wrote: > I propose that strings (unicode/text) shouldn't be iterable.
I understand that there are use cases, but I can't remember seeing one in real life. I have seen many uses for the container version x in string and of course many good uses of iteration over the results of a string method (such as string.split()), but no good uses for iterating over a string directly for x in string A special method to get a tuple (or immutable list) view would be a good thing, as it would document that I was doing so intentionally. (I wouldn't want to give up slicing, though, which might make the no-iteration trickier.) -jJ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com