In message <7xr5hg3a7s....@ruckus.brouhaha.com>, Paul Rubin wrote:

> Actually that code looks suspicious.  Suppose in
> 
>          AddrObj = PyTuple_GetItem(TheBufferInfo, 0);
>          LenObj = PyTuple_GetItem(TheBufferInfo, 1);
> 
> the first PyTuple_GetItem succeeds and the second one fails.

Admittedly, I did take a shortcut here: array.buffer_info returns a tuple of 
two items, so I’m not expecting one GetItem to succeed and the other to 
fail.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to