[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py, 1.4, 1.5 (original) (raw)

"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