From: Stefan Krah Date: Sun, 29 Jun 2014 22:15:45 +0000 (+0200) Subject: Issue #21778: Clarify use of flags if PyBuffer_FillInfo() is used inside a X-Git-Tag: v3.4.2rc1~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb458dbe597c64b5694d30f18b3f89bbdc2b3ab4;p=python Issue #21778: Clarify use of flags if PyBuffer_FillInfo() is used inside a getbufferproc(). --- diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index a7de37ee5f..230c6a957f 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -489,8 +489,8 @@ Buffer-related functions :c:member:`view->obj` to *NULL* and return -1; If this function is used as part of a :ref:`getbufferproc `, - *exporter* MUST be set to the exporting object. Otherwise, *exporter* MUST - be NULL. + *exporter* MUST be set to the exporting object and *flags* must be passed + unmodified. Otherwise, *exporter* MUST be NULL.