[docs] [issue10001] ~Py_buffer.obj field is undocumented, though not hidden

Lenard Lindstrom report at bugs.python.org
Fri Oct 1 09:26:14 CEST 2010


Lenard Lindstrom <len-l at telus.net> added the comment:

This will work for bf_getbuffer, though having PyObject_GetBuffer set 
the obj field before passing it to the callback might be safer. Also, 
this does not address the case with wrapper types like memoryview. What 
happens if ~Py_buffer.obj is not visited in tp_traverse? Should this be 
documented?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10001>
_______________________________________


More information about the docs mailing list