Ezio Melotti <ezio.melo...@gmail.com> added the comment:

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.

----------
keywords: +needs review, patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file21660/issue5057.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to