memcpy

Tim tec at knology.net
Mon Sep 10 14:38:50 EDT 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

Thanks




More information about the Python-list mailing list