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.

作者 ncoghlan
收信人 barry, ezio.melotti, kushal.das, ncoghlan, pitrou, serhiy.storchaka, vstinner
日期 2013-10-02.14:48:52
SpamBayes Score -1.0
Marked as misclassified
Message-id <1380725332.34.0.71448116557.issue17839@psf.upfronthosting.co.za>
In-reply-to
内容
After working through this, I found that the modern base64 API just relies on the checks in binascii. All that checks for is:

1. Can the data by exported using PyBUF_SIMPLE?
2. Is it C contiguous?

It completely ignores the number of dimensions and the format information. I added tests to at least capture this behaviour, even though it seems a little dubious to me.

For the legacy API, I didn't relax the input checks that far - the legacy API will still complain if there is more than 1 dimension and if the format code isn't one of 'c', 'b' or 'B'. That's already substantially more permissive than what it supported in previous versions.

Just running the full test suite now, will push after that finishes.
历史
日期 用户 动作 参数
2013-10-02 14:48:52ncoghlan修改recipients: + ncoghlan, barry, pitrou, vstinner, ezio.melotti, serhiy.storchaka, kushal.das
2013-10-02 14:48:52ncoghlan修改messageid: <1380725332.34.0.71448116557.issue17839@psf.upfronthosting.co.za>
2013-10-02 14:48:52ncoghlan链接issue17839 messages
2013-10-02 14:48:52ncoghlan创建