How to write partial of a buffer which was returned from a C function to a file?

Cameron Simpson cs at
Thu Apr 12 18:52:55 EDT 2018

On 12Apr2018 16:11, Jach Fong <jfong at> wrote:
>This is the first time I am using python-list to interact with 
>comp.lang.python forum (because there are so many spam when using 
>browser to view it) so forgive me if something goes wrong.
>Python already treat the returned buffer as 'bytes'. The problem is 
>Python don't know its size (or decides it wrong:-).

I think you'll need to show us your code. It isn't clear to me your problem is.

Cameron Simpson <cs at>

More information about the Python-list mailing list