Author vstinner
Recipients inada.naoki, larry, martin.panter, python-dev, serhiy.storchaka, vstinner
Date 2017-02-02.12:25:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486038309.09.0.797229796227.issue29300@psf.upfronthosting.co.za>
In-reply-to
Content
Martin> Shouldn’t the top-level unpack() parameter be called “buffer” like the other functions and methods, not “inputstr”?

Hum. I reopen the issue.

Attached patch renames unpack() "inputstr" argument to "buffer" and uses the Py_buffer type for it. I had to fix unit tests which passed str instead of bytes to buffer. Before this error was missed because the unit test is written to test the format string value, not the type of arguments.
History
Date User Action Args
2017-02-02 12:25:09vstinnersetrecipients: + vstinner, larry, inada.naoki, python-dev, martin.panter, serhiy.storchaka
2017-02-02 12:25:09vstinnersetmessageid: <1486038309.09.0.797229796227.issue29300@psf.upfronthosting.co.za>
2017-02-02 12:25:09vstinnerlinkissue29300 messages
2017-02-02 12:25:09vstinnercreate