[Python-Dev] Re: Multibyte repr()

Hye-Shik Chang perky@fallin.lv
Thu, 10 Oct 2002 15:42:37 +0900


Hi!

On Thu, Oct 10, 2002 at 02:10:01PM +0900, Atsuo Ishimoto wrote:
> Hello,
> 
> On Wed, 09 Oct 2002 17:07:33 -0400
> Guido van Rossum <guido@python.org> wrote:
> 
> > Well, if you *want* to see the hex codes for all non-ASCII characters,
> > repr() used to be your friend.  No more.  If you *want* to see the
> > printable characters, you could always use print.
> 
> I'm happy with this. I'm distributing modified version of Python Win32
> installer at http://www.python.jp/Zope/download/pythonjpdist. This
> version of Python contains similar modifications for Japanese ShiftJIS
> users.
> 
> But this patch has one problem. Because result of repr() depends on
> locale setting, we cannot assume text-form pickle could be restored
> everywhere. For example, under Japanese ShiftJIS locale, 

I realized that string_repr's depending on locale can be a problem
maker for many unexpected situations. What I wanted in this patch is
just to see _real_ string even in lists or dictionaries.
I and CJKV users may feel happy even without string_repr locale patch.

Regards,
-- 
Hye-Shik Chang <perky@fallin.lv>
Yonsei University, Seoul
^D