[issue1680159] Misleading exception from unicode.__contains__

2009-12-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed in r76831. (I changed the test assertion to check specifically for UnicodeDecodeError.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1680159

[issue1680159] Misleading exception from unicode.__contains__

2009-12-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1680159

[issue1680159] Misleading exception from unicode.__contains__

2009-04-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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