Message188476
New version of my patch taking Serhiy's remarks into account:
- add a check_format() function to cleanup unit tests
- only call _PyUnicodeWriter_Prepare() once per formatted argument: compute the length and maximum character. Be more optimistic about sprintf() for integer and pointer: expect that the maximum character is 127 or less
- uniformize code parsing width and precision
- factorize code for '%s' and '%V'
Note: remove also _PyUnicode_WriteSubstring() from the patch, it was already added. |
|
Date |
User |
Action |
Args |
2013-05-05 23:03:09 | vstinner | set | recipients:
+ vstinner, lemburg, mark.dickinson, eric.smith, ron_adam, ezio.melotti, lekma, ysj.ray, python-dev, petri.lehtinen, serhiy.storchaka, Sean.Ochoa |
2013-05-05 23:03:09 | vstinner | set | messageid: <1367794989.72.0.386630166038.issue7330@psf.upfronthosting.co.za> |
2013-05-05 23:03:09 | vstinner | link | issue7330 messages |
2013-05-05 23:03:09 | vstinner | create | |
|