Author pitrou
Recipients ncoghlan, pitrou, rupole
Date 2010-11-02.23:01:11
SpamBayes Score 4.59309e-05
Marked as misclassified No
Message-id <1288738868.3541.14.camel@localhost.localdomain>
In-reply-to <>
> Read the "Releasing the buffer" section in PEP 3118 again. Unless I'm
> misunderstanding you completely, the rules you're asking for are
> already in place: those fields are entirely the responsibility of the
> exporting object, and it needs to ensure they remain valid until the
> buffer is released.

In practice, though, we copy Py_buffer structs around and there's no way
for the original object to know about that. That's the fundamental
difference with a PyObject where you would only increase a refcount
instead of copying the structure's contents.
Date User Action Args
2010-11-02 23:01:14pitrousetrecipients: + pitrou, ncoghlan, rupole
2010-11-02 23:01:12pitroulinkissue10181 messages
2010-11-02 23:01:11pitroucreate