Message106700
| Author |
vstinner |
| Recipients |
doerwalter, vstinner |
| Date |
2010年05月29日.01:38:46 |
| SpamBayes Score |
0.020278143 |
| Marked as misclassified |
No |
| Message-id |
<1275097128.66.0.216673219733.issue8848@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"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.) |
|
History
|
|---|
| 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 |
|