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 ezio.melotti
Recipients amaury.forgeotdarc, ezio.melotti, pitrou, rhettinger
Date 2011-04-14.11:32:04
SpamBayes Score 1.9641218e-05
Marked as misclassified No
Message-id <1302780725.86.0.482931658963.issue5057@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch skips the peepholer optimizations for BINARY_SUBSCR if the resulting char is a surrogate on narrow builds or a non-bmp char in wide builds.
Note that this affects the optimization of lone surrogates on narrow builds too, but I think it's not worth to adding more complexity on the peepholer and check if they are part of a surrogate pair.
The patch still lacks comments and could have better tests.
History
Date User Action Args
2011-04-14 11:32:05ezio.melottisetrecipients: + ezio.melotti, rhettinger, amaury.forgeotdarc, pitrou
2011-04-14 11:32:05ezio.melottisetmessageid: <1302780725.86.0.482931658963.issue5057@psf.upfronthosting.co.za>
2011-04-14 11:32:05ezio.melottilinkissue5057 messages
2011-04-14 11:32:05ezio.melotticreate