[Tutor] Need help on modifying buffer passed to python script from c

Alan Gauld alan.gauld@blueyonder.co.uk
Sat Jun 7 15:06:01 2003


> problem I'm running into is that python thinks the buffer is a big
> string, but I want it to be treated as integers (it's an offscreen
> ARGB buffer to be blitted to the screen). Is there a way of
"tricking"
> Python into seeing it as something other than 'str'?

Use the struct module to convert it within Python.

I think...

Alan g