[Python-Dev] unicode Exception messages in py2.7
chris.barker at noaa.gov
Fri Nov 15 00:57:05 CET 2013
On Thu, Nov 14, 2013 at 1:20 PM, Victor Stinner
>> If you create an Exception with a unicode object for the message, (...)
> In Python 2, there are too many similar corner cases. It is impossible
> to fix these bugs without taking the risk of introducing a regression.
Yes, there are -- the auto-encoding is a serious pain everywhere.
However, this is a case where the resulting Exception is silenced --
it's the only one I know of, and there can't be many like that.
> Seriously, *all* these tricky bugs are fixed in Python 3. So don't
> loose time on trying to workaround them, but invest in the future:
> upgrade to Python 3!
Maybe so -- but we are either maintaining 2.7 or not -- it WIL be
around for along time yet...
(amazing to me how many people are still using <=2.7, actually, even
for new projects .. thank you Red Hat "Enterprise" Linux ;-) )
Christopher Barker, Ph.D.
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Python-Dev