Message106700
"U" and "U#" formats were introduced by r55433 (Python3). At this same, "s" and "U" formats were different: "s" called PyString_FromStringAndSize() and "U" called PyUnicode_FromStringAndSize(). Two months later, PyString_FromStringAndSize() was replaced by PyUnicode_FromStringAndSize() for format "s", and so both formats are exactly the same.
"U" and "U#" were introduced during the transition between bytes, str and unicode. They can now be replaced by "s" and "s#", and then be removed.
There is just one usage of "U": definition of sys.subversion (Python/sysmodule.c), whereas there are 36 usages of "s" format. (U# and s# are not used.) |
|
Date |
User |
Action |
Args |
2010-05-29 01:38:48 | vstinner | set | recipients:
+ vstinner, doerwalter |
2010-05-29 01:38:48 | vstinner | set | messageid: <1275097128.66.0.216673219733.issue8848@psf.upfronthosting.co.za> |
2010-05-29 01:38:47 | vstinner | link | issue8848 messages |
2010-05-29 01:38:46 | vstinner | create | |
|