STINNER Victor <victor.stin...@gmail.com> added the comment:

Castng to Py_UCS4 doesn't make the warning quiet. Does someone know
how to make the warning quiet.

If not, assertions can be removed from PyUnicode_WRITE. We might write
a function for Python compiled in debug mode to add the assertions.

More consistency tests (e.g. check for non-ASCII character in an ASCII
string) could be added if the macro got the object, but it only takes
data and kind.

----------

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

Reply via email to