STINNER Victor added the comment:

"Well, it looks reasonable. But an action should be ASCII only string. So 
perhaps we should first check PyUnicode_IS_ASCII() and then use 
PyUnicode_1BYTE_DATA() and strcpy()."

Such optimizations in warnings seem overkill, performances are not critical in 
this module.

I optimized PyUnicode_CompareWithASCIIString() instead.

----------

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

Reply via email to