This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, pitrou, rupole, teoliphant
Date 2008-08-20.09:43:16
SpamBayes Score 1.688883e-05
Marked as misclassified No
Message-id <1219225398.14.0.250000375695.issue3608@psf.upfronthosting.co.za>
In-reply-to
Content
Well, this is not a bug in itself. Memoryview objects are designed to
give access to a memory area backed by another object - they don't "own"
the memory by themselves (in the sense that you e.g. own a reference to
a PyObject).

Please note by the way that the Py_buffer struct now has a reference to
the original object, the "obj" field. PyBuffer_FillInfo() will incref
it, and PyBuffer_Release() will decref it again. However, it you set
this field to NULL, you are responsible for doing your own reference
management.

I agree that it may be nice to support your use case, but I'm not sure
what the semantics should be. For clarity, perhaps it should be a
derived class of memoryview.
History
Date User Action Args
2008-08-20 09:43:18pitrousetrecipients: + pitrou, teoliphant, rupole, benjamin.peterson
2008-08-20 09:43:18pitrousetmessageid: <1219225398.14.0.250000375695.issue3608@psf.upfronthosting.co.za>
2008-08-20 09:43:17pitroulinkissue3608 messages
2008-08-20 09:43:16pitroucreate