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/2013-November/130178.html below:

[Python-Dev] unicode Exception messages in py2.7

[Python-Dev] unicode Exception messages in py2.7 [Python-Dev] unicode Exception messages in py2.7Victor Stinner victor.stinner at gmail.com
Thu Nov 14 22:20:52 CET 2013
2013/11/14 Chris Barker <chris.barker at noaa.gov>:
> (note this is about 2.7 -- sorry, but a lot of us still use that! I
> can only assume that in 3.* this is a non-issue)
>
> I just discovered an issue that's been around a long time:
>
> 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.

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!

Victor
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