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/2003-April/034527.html below:

[I18n-sig] Changes to gettext.py for Python 2.3

[Python-Dev] Re: [I18n-sig] Changes to gettext.py for Python 2.3 [Python-Dev] Re: [I18n-sig] Changes to gettext.py for Python 2.3Martin v. Löwis martin@v.loewis.de
12 Apr 2003 12:34:05 +0200
Barry Warsaw <barry@python.org> writes:

> I suppose we could cache the conversion to make the next lookup more
> efficient.  Alternatively, if we always convert internally to Unicode we
> could encode on .gettext().  Then we could just pick One Way and do away
> with the coerce flag.

If you are concerned about efficiency, I guess there is no way to
avoid converting the file to Unicode on loading. I would then
encourage a change where this flag is available, but has an effect
only on performance, not on the behaviour.

Alternatively, you could subclass GNUTranslation.

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