On Mon, Apr 14, 2008 at 8:04 PM, atsuo ishimoto <[EMAIL PROTECTED]> wrote: > 2008/4/14, Michael Urman <[EMAIL PROTECTED]>: > > > This theory sounds good to me. Should it perhaps also convert Unicode > > whitespace and control characters (categories Z* and C*)? While these > > will often still be printable, like \n and \t they may not be > > distinguishable from some number of ASCII spaces in printed form. > > It would be nice, but make result of repr() less predictable a bit, > since result > of repr() depends on version of Unicode spec, not Python language. > I'm not sure it is harmful or not, but having a list of characters converted > in repr() (e.g. sys.nonprintablechars) might help.
I wouldn't worry too much about the version of the Unicode standard. We have to do real work to start using a new version of the standard anyway (like generating new data files) so this is unlikely to be causing surprise failures. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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