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.

作者 lemburg
收信人 lemburg, loewis, vstinner
日期 2010-06-07.21:50:20
SpamBayes Score 0.0049211676
Marked as misclassified
Message-id <4C0D699B.7060000@egenix.com>
In-reply-to <1275858556.34.0.0118825521828.issue8839@psf.upfronthosting.co.za>
内容
STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
> New version of the patch:
>  - charbuffer_encode() uses y* instead of y# format to accept modifiable buffer objects (eg. bytearray)
>  - Improve the documentation about the change
> 
> @lemburg: So, do you agree with my patch?

No, because y*/y# are not correct replacements for t#. They don't
accept Unicode objects.

t# was meant to provide access to text data, so replacing it with a
parser code that is meant for binary data is not correct. The
closes Python3 gets to t# from Python2 is s# or s*, so please use
those in the NEWS entry and s* in charbuffer_encode().
历史
日期 用户 动作 参数
2010-06-07 21:50:23lemburg修改recipients: + lemburg, loewis, vstinner
2010-06-07 21:50:21lemburg链接issue8839 messages
2010-06-07 21:50:20lemburg创建