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 skrah
Recipients Arfrever, belopolsky, larry, martin.panter, pitrou, serhiy.storchaka, skrah
Date 2015-02-02.13:09:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
Thanks.  No, I don't think there's an official way to accomplish that,
but let's create one.  How about a new function that takes the buffer
request flags:

    PyMemoryView_FromObjectEx(exporter, PyBUF_SIMPLE|PyBUF_WRITABLE)

If we can spare a new format code, this could be called directly in
PyArg_ParseTuple(), which would give back the memoryview.

Otherwise, you get the exporter from PyArg_ParseTuple() and call
PyMemoryView_FromObjectEx() manually.

If I'm not mistaken, this would save us the intermediate buffer on the
stack, and it's more readable.
Date User Action Args
2015-02-02 13:09:51skrahsetrecipients: + skrah, belopolsky, pitrou, larry, Arfrever, martin.panter, serhiy.storchaka
2015-02-02 13:09:51skrahlinkissue22896 messages
2015-02-02 13:09:50skrahcreate