STINNER Victor added the comment:

If the problem is that PyUnicode_FromUnicode() rejects character outside range 
[U+0000; U+10ffff], it would be better to use the byte string '\xff' * 
sizeof_PY_UNICODE. U+66647361 may become valid in a future version of Unicode, 
I don't thing that U+FFFFFFFF would become valid.

sizeof_PY_UNICODE is ctypes.sizeof(ctypes.c_wchar) since Python 3.3. '\xff' * 4 
works on any platform.

----------

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

Reply via email to