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 ncoghlan
Recipients barry, ezio.melotti, kushal.das, ncoghlan, pitrou, serhiy.storchaka, vstinner
Date 2013-10-02.14:48:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380725332.34.0.71448116557.issue17839@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-10-02 14:48:52ncoghlansetrecipients: + ncoghlan, barry, pitrou, vstinner, ezio.melotti, serhiy.storchaka, kushal.das
2013-10-02 14:48:52ncoghlansetmessageid: <1380725332.34.0.71448116557.issue17839@psf.upfronthosting.co.za>
2013-10-02 14:48:52ncoghlanlinkissue17839 messages
2013-10-02 14:48:52ncoghlancreate