Message220727
| Author |
skrah |
| Recipients |
arigo, skrah |
| Date |
2014年06月16日.14:29:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1402928988.13.0.546446838083.issue21778@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The flags from mb_getbuf() have to be passed to PyBuffer_FillInfo():
return PyBuffer_FillInfo(view, (PyObject *)self,
internal, 5,
/*readonly=*/0, flags);
The flags contain the actual request that the consumer
sends to the buffer provider, so they cannot be hardcoded.
In this example, memoryview sends the PyBUF_FULL request to
mb_getbuf(). If the request is successful, it can assume
non-NULL strides.
Should the documentation be improved? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年06月16日 14:29:48 | skrah | set | recipients:
+ skrah, arigo |
| 2014年06月16日 14:29:48 | skrah | set | messageid: <1402928988.13.0.546446838083.issue21778@psf.upfronthosting.co.za> |
| 2014年06月16日 14:29:48 | skrah | link | issue21778 messages |
| 2014年06月16日 14:29:47 | skrah | create |
|