[Python-3000] Recursive str
Guido van Rossum
guido at python.org
Tue Apr 15 05:12:26 CEST 2008
On Mon, Apr 14, 2008 at 8:04 PM, atsuo ishimoto <ishimoto at gembook.org> wrote:
> 2008/4/14, Michael Urman <murman at gmail.com>:
>
> > 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/)
More information about the Python-3000
mailing list