Message228424
When sizeof(c_wchar) == 2, it can just count the number of non-BMP ordinals in the string. Another approach would be to use size = pythonapi.PyUnicode_AsWideChar(init, None, 0), but then the whole function may as well be implemented in the _ctypes extension module. |
|
Date |
User |
Action |
Args |
2014-10-04 02:24:52 | eryksun | set | recipients:
+ eryksun, amaury.forgeotdarc, belopolsky, vstinner, meador.inge, BreamoreBoy, gergely.erdelyi |
2014-10-04 02:24:52 | eryksun | set | messageid: <1412389492.49.0.639743219125.issue19865@psf.upfronthosting.co.za> |
2014-10-04 02:24:52 | eryksun | link | issue19865 messages |
2014-10-04 02:24:52 | eryksun | create | |
|