Serhiy Storchaka added the comment:

Current code assumes that PyUnicode_DATA() is aligned to PyUnicode_KIND() 
bytes. If this is not true on some platform it will be easer to add a padding 
than rewrite a code. A lot of code depends on this assumption. See also 
issue14422.

I afraid that proposed patch may slow down a search.

----------
nosy: +pitrou

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

Reply via email to