Re: Creating arrays (builtin) in C Extensions
"iwl" <Ingo.Wolf@xxxxxx> 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
.
Relevant Pages
- Re: Vectorizing assignment to a structure arrays array field
... You first algo and your second algo and us's algo do give ... The us algorithm did reveal that arrayfun can operate on ... also contrary to the documentation. ... comparing fields of elements of a struct array. ... (comp.soft-sys.matlab) - Re: [PHP] Object to array conversion oddity
... casting from object to array indicates ... that you no longer want the constraints of property protection, ... behave the way the documentation pointed it out, ... or the behavior needs to be modified. ... (php.general) - Re: [PHP] Object to array conversion oddity
... casting from object to array indicates ... Blah, blah, blah. ... The documentation is probably out of date and applied ... scalable system for accessing system services | ... (php.general) - Re: windows 95 RPC
... After the original Windows 95, RPC in following Win9x family is ... no /robust support is available in Win9x and NT4 family though. ... We might need to follow up with documentation. ... In your definition, ptr becomes a multi-dimensional array, whose first ... (microsoft.public.win32.programmer.networks) - Number of Items in Array
... In the Perl documentation it says that you can find out the number ... array that is being returned from an object. ... snippet of code giving me trouble: ... (perl.beginners) |
|