Re: [Python-Dev] Py_buffer.obj documentation

2012-08-30 Thread Stefan Krah
Alexander Belopolsky wrote: > /* info->obj is either NULL or a borrowed reference. This > reference should not be decremented in PyBuffer_Release(). */ The semantics of PyMemoryView_FromBuffer() are problematic. This function is the odd one in memoryobject.c since it's the only function that

Re: [Python-Dev] Py_buffer.obj documentation

2012-08-29 Thread Jeff Allen
On 29/08/2012 22:28, Alexander Belopolsky wrote: I am trying to reconcile this section in 3.3 documentation: """ void *obj A new reference to the exporting object. The reference is owned by the consumer and automatically decremented and set to NULL by PyBuffer_Release(). with the following c

[Python-Dev] Py_buffer.obj documentation

2012-08-29 Thread Alexander Belopolsky
I am trying to reconcile this section in 3.3 documentation: """ void *obj A new reference to the exporting object. The reference is owned by the consumer and automatically decremented and set to NULL by PyBuffer_Release(). The field is the equivalent of the return value of any standard C-API func