[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

Pauli Virtanen report at bugs.python.org
Mon Jun 27 20:36:27 CEST 2011


Pauli Virtanen <pav at iki.fi> added the comment:

Lenard Lindstrom writes:
> Using Python reference counting and the garbage collector to control 
> when PyBuffer_Release is called has problems.

That's not what's being suggested. The refcounting discussed here is an implementation detail internal to memoryview, and does not affect the possibility to implement `release()` and context management reliably.

----------

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


More information about the Python-bugs-list mailing list