Queue cleanup

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Aug 30 04:21:00 EDT 2010


In message <7xr5hg3a7s.fsf at 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.




More information about the Python-list mailing list