Message76166
Yes, it's better to simply call str() on the exception. I was confused
by the fact that UnicodeError is a simple exception, with a single
message, unlike UnicodeDecodeError which has more attributes.
About the patch:
- The test does not work if test_ucn.py is run before: the unicodedata
module is imported only once on the first \N{} decoding. You could try
to run the test in a subprocess.
- In ast.c, errstr should be DECREF'd. |
|
Date |
User |
Action |
Args |
2008-11-21 08:39:17 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, benjamin.peterson, ot |
2008-11-21 08:39:16 | amaury.forgeotdarc | set | messageid: <1227256756.73.0.046857928114.issue4367@psf.upfronthosting.co.za> |
2008-11-21 08:39:15 | amaury.forgeotdarc | link | issue4367 messages |
2008-11-21 08:39:15 | amaury.forgeotdarc | create | |
|