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/2004-January/042064.html below:

[Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py, 1.4, 1.5

[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py, 1.4, 1.5"Martin v. Löwis" martin at v.loewis.de
Sun Jan 18 09:56:51 EST 2004
Anthony Baxter wrote:
> If it can be shown that this is a pure win (that is, it improves code
> for 2.3.4, but is both backwards and forwards compatible, then I don't
> mind. I _do_ mind if we end up with the horror of 2.2.2's not-really-
> booleans, which has resulted in FAR FAR too much code of the form:
> 
> try:
>     True, False
> except:
>     True, False = 1, 0

It depends on the usage. If applications just do

foo.encode("some-cjk-encoding")

then all will work fine. However, it may be that applications
do

try:
   codecs.lookup("some-cjk-encoding")
except LookupError:
   try:
     import japanese
     japanese.register_aliases()
   except ImportError:
     pass


Regards,
Martin


More information about the Python-Dev mailing list

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