[Python-3000] PEP 3138- String representation in Python 3000

Guido van Rossum guido at python.org
Sat May 24 07:01:11 CEST 2008


On Fri, May 23, 2008 at 7:04 PM, Atsuo Ishimoto <ishimoto at gembook.org> wrote:
> On Sat, May 24, 2008 at 5:42 AM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
>> Atsuo Ishimoto writes:
>>  > 2008/5/23 Guido van Rossum <guido at python.org>:
>>  > > Personally, I can live with it. I rarely generate Japanese text so I
>>  > > doubt it'll be a problem. I can also change the console encoding and
>>  > > error handler.
>>  >
>>  > While you rarely generate Japanese text, but I guess you often get
>>  > non-ASCII text data e.g. SPAM mail in Japanese, Rietveld comments in
>>  > Spanish, etc. Forecasting encoding of data is hard in these days.
>>
>> I don't see the problem.  You don't have to forecast the encoding of
>> data.  Strings are Unicode in Python internal format.  The question is
>> whether the device receiving the output of repr can handle all of the
>> characters that will be generated.
>
> Yes. My question is "Which do you feel comfortable, printing collect
> glyphs or hex-escaped ASCII ?". I prefer printed glyphs for foreign
> characters, but I had feeling that western people prefer hex-escaped
> ASCII in general. But from responses I saw, perhaps this is not big
> deal.

I've certainly gotten over it, and have come to appreciate your point of view.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list