[Python-Dev] Re: Multibyte repr() (original) (raw)

Martin v. Loewis martin@v.loewis.de
10 Oct 2002 20:29:27 +0200


Guido van Rossum <guido@python.org> writes:

> I realized that stringrepr'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 stringrepr locale patch.

I'm not sure I follow. What is the alternative that you propose?

I think Hye-Shik Chang would be happy if just tp_print acts according to the locale, and "most" containers support tp_print. Given that list, tuple, and dict have tp_print, no further action might be needed.

I'm now convinced that having repr locale-specific is unacceptable. So I would back something out. However, I still sympathize with the original rationale, and I don't see a problem with tp_print differing from tp_repr.

Regards, Martin