STINNER Victor <[email protected]> added the comment:
I would be nice to have a third path for inegality with kind1==kind2, something
like:
else if (kind1 == PyUnicode_2BYTE_KIND && kind2 == PyUnicode_2BYTE_KIND)
{
/* use Py_UCS2* pointers */
}
else if (kind1 == PyUnicode_4BYTE_KIND && kind2 == PyUnicode_4BYTE_KIND)
{
/* use Py_UCS4* pointers */
}
Inegality comparaisons are used to sort Unicode lists for example.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13279>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com