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.

classification
Title: Buffer Protocol Prototypes Incorrect
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, perspex
Priority: normal Keywords:

Created on 2004-07-02 12:13 by perspex, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
api-abstract.patch perspex, 2004-07-02 12:13 Patch
Messages (2)
msg21379 - (view) Author: Timothy Stranex (perspex) Date: 2004-07-02 12:13
The PyObject_AsReadBuffer and PyObject_AsWriteBuffer
functions are documented incorrectly in the Python/C
API Reference Manual for both Python 2.3 and the
current development documentation.

Section 6.6 ("Buffer Protocol") state the following
prototypes:

    - int PyObject_AsReadBuffer(PyObject *obj, const
char **buffer, int *buffer_len)
    - int PyObject_AsWriteBuffer(PyObject *obj, char
**buffer, int *buffer_len)

while Include/abstract.h define them as follows:

    - int PyObject_AsReadBuffer(PyObject *obj, const
void **buffer, int *buffer_len)
    - int PyObject_AsWriteBuffer(PyObject *obj, void
**buffer, int *buffer_len);

In each case, "char **buffer" should be changed to
"void **buffer". I've included a patch against Python
2.3.3 in diff -u format that fixes this. It modifies
Doc/api/abstract.tex.

Thanks,
Timothy Stranex
msg21380 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-07-07 13:09
Logged In: YES 
user_id=11375

Fixed in both CVS HEAD and the 2.3 maintenance branch.  Thanks!
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40493
2004-07-02 12:13:20perspexcreate