Kristján Valur Jónsson added the comment:
The documentation issue appears present in 2.7 (and 2.6).
Further, the Py_buffer member 'obj' is undocumented, and the in-line comment in
object.h falsely states that it is a "borrowed" reference, whereas
PyBuffer_Release() Py_XDECREFs it and clears it
Brian Curtin added the comment:
Fixed in r81851 (py3k) and r81852 (release31-maint). Thanks!
--
assignee: d...@python -> brian.curtin
nosy: +brian.curtin
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
versions: +Python 3.2
___
New submission from Dave Opstad :
According to the 3.1 documentation, the prototype for PyBuffer_Release is:
void PyBuffer_Release(PyObject *obj, Py_buffer *view);
However, abstract.h has this prototype:
PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
The documentation's reference to "obj