[Python-checkins] r51276 - in python/trunk: Doc/api/concrete.tex Doc/api/exceptions.tex Doc/lib/libexcs.tex Doc/lib/libwarnings.tex Include/pyerrors.h Include/unicodeobject.h Lib/test/exception_hierarchy.txt Misc/NEWS Objects/exceptions.c Objects/object.c Objects/unicodeobject.c
Nick Coghlan
ncoghlan at gmail.com
Mon Aug 14 13:24:33 CEST 2006
marc-andre.lemburg wrote:
> Modified: python/trunk/Misc/NEWS
> ==============================================================================
> --- python/trunk/Misc/NEWS (original)
> +++ python/trunk/Misc/NEWS Mon Aug 14 12:55:19 2006
> @@ -12,18 +12,18 @@
> Core and builtins
> -----------------
>
> -- Fix segfault when doing string formatting on subclasses of long.
> +- Unicode objects will no longer raise an exception when being
> + compared equal or unequal to a string and causing a
> + UnicodeDecodeError exception, e.g. as result of a decoding failure.
> +
> + Instead, the equal (==) and unequal (!=) comparison operators will
> + now issue a UnicodeWarning and interpret the two objects as
> + unequal. The UnicodeWarning can be filtered as desired using
> + the warning framework, e.g. silenced completely, turned into an
> + exception, logged, etc.
>
> -- Fix bug related to __len__ functions using values > 2**32 on 64-bit machines
> - with new-style classes.
> -
> -- Fix bug related to __len__ functions returning negative values with
> - classic classes.
> -
> -- Patch #1538606, Fix __index__() clipping. There were some problems
> - discovered with the API and how integers that didn't fit into Py_ssize_t
> - were handled. This patch attempts to provide enough alternatives
> - to effectively use __index__.
> + Note that compare operators other than equal and unequal will still
> + raise UnicodeDecodeError exceptions as they've always done.
This looks like it lost a bunch of NEWS entries.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-checkins
mailing list