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/2010-March/098121.html below:

[Python-Dev] Deprecation warnings in Python 2.7

[Python-Dev] Deprecation warnings in Python 2.7 [Python-Dev] Deprecation warnings in Python 2.7Florent Xicluna florent.xicluna at gmail.com
Wed Mar 3 12:00:05 CET 2010
2010/3/3 Florent Xicluna <florent.xicluna at gmail.com>:
>
>>>> u'\xff' == bytearray('\xff')    # It should raise an error because of '-bb'
> __main__:1: BytesWarning: Comparison between bytearray and string
> False
>>>> u'\xff' == '\xff'
> __main__:1: UnicodeWarning: Unicode equal comparison failed to convert
> both arguments to Unicode - interpreting them as being unequal
> False

I see that the BytesWarning (and -b option) is a 3.x feature.
I don't see the reason to keep it in 2.x, though....

On the other side, UnicodeWarning is unused in 3.x, why we keep it
around? We may phase it out in 3.2?

-- 
Florent
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