You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for PyObject_AsReadBuffer (and
others in that group, I suspect) seems to be incorrect.
It notes that PyObject_AsReadBuffer returns 1 on
success, 0 on failure. However, it returns 0 on
success and -1 on failure.
This is true for the current documentation on
Python.org, as well as older versions.
Thanks!
(or, this could be treated as a bug in
PyObject_AsReadBuffer itself, returning the wrong
values... which is probably more accurate, so it is
consistent with other functions in the C API.
However, changing it's return value at this point
would break a LOT of software)
Fixed in Doc/api/abstract.tex revisions 1.11 and 1.8.6.3.
Added the relevant PyObject_As*Buffer() descriptions to Doc/api/api.tex revision 1.117.2.13 (for Python 2.1.3) as
well, since I'm making changes for these functions anyway.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: