Message133724
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. |
|
Date |
User |
Action |
Args |
2011-04-14 11:32:05 | ezio.melotti | set | recipients:
+ ezio.melotti, rhettinger, amaury.forgeotdarc, pitrou |
2011-04-14 11:32:05 | ezio.melotti | set | messageid: <1302780725.86.0.482931658963.issue5057@psf.upfronthosting.co.za> |
2011-04-14 11:32:05 | ezio.melotti | link | issue5057 messages |
2011-04-14 11:32:05 | ezio.melotti | create | |
|