![](https://secure.gravatar.com/avatar/a7078ab39cb3059f5289a0eff4ce4c8a.jpg?s=120&d=mm&r=g)
Aug. 3, 1999
9:53 a.m.
Why not pass the index to the As*Buffer routines as well and make getsegcount available too? Then you could code things like for(i=0; i<PyObject_GetBufferCount(obj); i++) { if ( PyObject_AsCharBuffer(obj, &buf, &count, i) < 0 ) return -1; write(fp, buf, count); } -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++ www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm