[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

M.-A. Lemburg mal at egenix.com
Mon Aug 14 13:40:55 CEST 2006


Nick Coghlan wrote:
> 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.

Good catch. Thanks.

I'll readd those entries.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 14 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the Python-checkins mailing list