Tim tec at
Mon Sep 10 20:38:50 CEST 2007

How do I memcpy from a pointer to an array of floats in python?

I get errors: NameError: global name 'row' is not defined

I want to be able to get the row[i] array element. In C I would
normally place the address of row as the first argument.

cdll.msvcrt.memcpy( row, pData, 256 )

If I define row as the following I also get the following error:

row = ones( TOTAL_PARAMETER_ENTRIES, dtype=float )

ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't know
how to convert parameter 1


More information about the Python-list mailing list