[Python-3000] Displaying strings containing unicode escapes
atsuo ishimoto
ishimoto at gembook.org
Tue Apr 29 14:20:10 CEST 2008
2008/4/17 Stephen J. Turnbull <stephen at xemacs.org>:
> How about choosing a standard Python repertoire (based on the Unicode
> standard, of course) of which characters get a graphic repr and which
> ones get \u-escaped, and have a post-hook for repr which gets passed
> the string repr proposes to print out?
Will the standard repertoire exclude Cyrillic or full-with ASCII? If
so, I (Japanese)
will disable the hook because full-with ASCII characters are not
ambiguous to me.
Russian people may not want to use the repertoire, also.
I think ambiguity will occur when we meet with unfamiliar characters.
So choosing
repertoire everybody can accept will be difficult.
For Python identifiers, it is good idea to select a repertoire for my project.
But the repertoire is best used with such tool as PyChecker. repr() is not
necessary to check the repertoire.
More information about the Python-3000
mailing list