[issue1680159] Misleading exception from unicode.__contains__

2009-12-14 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: -Python 2.6 ___ Python tracker ___ __

[issue1680159] Misleading exception from unicode.__contains__

2009-12-14 Thread R. David Murray
R. David Murray added the comment: Committed in r76831. (I changed the test assertion to check specifically for UnicodeDecodeError.) -- ___ Python tracker ___ ___

[issue1680159] Misleading exception from unicode.__contains__

2009-04-03 Thread R. David Murray
R. David Murray added the comment: Still gives the same message in 2.7a0. Looks to be simple enough to fix: just stop masking the UnicodeDecode and TypeError messages produced by the PyUnicode_FromObject call in the PyUnicode_Contains method. Test and patch attached. If you have no objection,