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, doerwalter, ggenellina, jafo, sbp
Date 2008-03-18.01:46:19
SpamBayes Score 0.032012127
Marked as misclassified No
Message-id <1205804780.95.0.0616632611588.issue1477@psf.upfronthosting.co.za>
In-reply-to
Content
The error is not uncatchable; but it is generated while compiling, like
a SyntaxError. No bytecode is generated for the input, and the "except"
opcode is not run at all.

OTOH, there is a bug in PyUnicode_DecodeRawUnicodeEscape(): it should
accept code points > 0xffff. It has another problem:

>>> ur'\U00010000'
u'\x00'

I join a patch to make raw-unicode-escape similar to unicode-escape:
characters outside the Basic Plane are encoded into a utf-16 surrogate
pair; on decoding, utf-16 surrogates are decoded into \U00xxxxxx.
History
Date User Action Args
2008-03-18 01:46:21amaury.forgeotdarcsetspambayes_score: 0.0320121 -> 0.032012127
recipients: + amaury.forgeotdarc, doerwalter, jafo, ggenellina, sbp
2008-03-18 01:46:20amaury.forgeotdarcsetspambayes_score: 0.0320121 -> 0.0320121
messageid: <1205804780.95.0.0616632611588.issue1477@psf.upfronthosting.co.za>
2008-03-18 01:46:20amaury.forgeotdarclinkissue1477 messages
2008-03-18 01:46:20amaury.forgeotdarccreate