Message146540
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. |
|
Date |
User |
Action |
Args |
2011-10-28 08:52:45 | vstinner | set | recipients:
+ vstinner, loewis, pitrou, scoder, asmodai, ezio.melotti, petri.lehtinen, RichIsMyName |
2011-10-28 08:52:45 | vstinner | set | messageid: <1319791965.63.0.369777775443.issue13279@psf.upfronthosting.co.za> |
2011-10-28 08:52:45 | vstinner | link | issue13279 messages |
2011-10-28 08:52:44 | vstinner | create | |
|