消息 [120281]
> 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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-11-02 23:01:14 | pitrou | 修改 | recipients:
+ pitrou, ncoghlan, rupole |
| 2010-11-02 23:01:12 | pitrou | 链接 | issue10181 messages |
| 2010-11-02 23:01:11 | pitrou | 创建 | |
|