This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, gvanrossum
Date 2007-10-29.22:01:57
SpamBayes Score 0.081830986
Marked as misclassified No
Message-id <1193695318.17.0.927279727342.issue1359@psf.upfronthosting.co.za>
In-reply-to
Content
I don't like this assert either: this function is part of the public
API, and should not crash the interpreter just because of a trailing \.

To test easily:

import ctypes
decode = ctypes.pythonapi.PyUnicodeUCS2_DecodeUnicodeEscape
decode.restype = ctypes.py_object
decode(b'\\1', 1, None)

This should gently raise a UnicodeDecodeError IMO.
History
Date User Action Args
2007-10-29 22:01:58amaury.forgeotdarcsetspambayes_score: 0.081831 -> 0.081830986
recipients: + amaury.forgeotdarc, gvanrossum
2007-10-29 22:01:58amaury.forgeotdarcsetspambayes_score: 0.081831 -> 0.081831
messageid: <1193695318.17.0.927279727342.issue1359@psf.upfronthosting.co.za>
2007-10-29 22:01:58amaury.forgeotdarclinkissue1359 messages
2007-10-29 22:01:57amaury.forgeotdarccreate