> Then you wouldn't even be able to iterate over or index strings anymore, > as that could produce such "invalid" strings, which would need to > generate exceptions if you really want to ban them.
I don't think that's right: iterating over the the string should presumably generate a iteration of valid sub-strings, each of length one. It would not generate a sequence of integers. [x for x in "abc"] != [ord(x) for x in "abc"] > making people type 'o\u0308'[1] instead of '\u0308'? 'o\u0308'[1] should generate an ArrayBounds exception, since you're indexing into a string of length 1. Bill _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
