Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: 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. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4367> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com