This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:48vstinnersetrecipients: + vstinner, doerwalter
2010-05-29 01:38:48vstinnersetmessageid: <1275097128.66.0.216673219733.issue8848@psf.upfronthosting.co.za>
2010-05-29 01:38:47vstinnerlinkissue8848 messages
2010-05-29 01:38:46vstinnercreate