"iwl" <[EMAIL PROTECTED]> wrote:

> there is an builtin documented array module in phyton,
> but no documentation how such an array can be
> created in C-Extension functions.

I would guess you create an array from C the same way you create any other 
Python objects. So call PyImport_ImportModule to get the array module, get 
its 'array' attribute with PyObject_GetAttrString then call PyObject_New to 
create your array.

There is documentation on how to set the data in the array. See 
http://docs.python.org/api/bufferObjects.html
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to