A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-October/029495.html below:

[Python-Dev] Re: Multibyte repr()

[Python-Dev] Re: Multibyte repr()Martin v. Loewis martin@v.loewis.de
10 Oct 2002 20:29:27 +0200
Guido van Rossum <guido@python.org> writes:

> > 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.
> 
> 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4