On 15/11/2013 13:54, Ned Batchelder wrote:
.........

No, but I've found that significant programs that run on both 2 and 3 need to 
have some shims to make the code work anyway.  You could do this:

     try:
         repr = ascii
     except NameError:
         pass
....
yes I tried that, but it doesn't affect %r which is inlined in unicodeobject.c, for me it seems easier to fix windows to use something like a standard encoding of utf8 ie cp65001, but that's quite hard to do globally. It seems sitecustomize is too late to set os.environ['PYTHONIOENCODING'], perhaps I can stuff that into one of the global environment vars and have it work for all python invocations.
--
Robin Becker

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to