[Numpy-discussion] Numpy array flags - BUG?

Thomas Hrabe thrabe@gmail....
Thu Sep 11 18:08:08 CDT 2008


I tried another approach, creating an array in python with

>>>import numpy;
>>>a = numpy.zeros((2,2),order="C");
>>>a.flags.num
1285

and setting the flags within C++ to 1286.
The value remains the same (1285) after setting it to 1286 in embedded C.

PyArg_ParseTuple(args, "O!",&PyArray_Type, &array)
		
printf("%d\n",array->flags); //prints 1285
array->flags = 1286;
printf("%d\n",array->flags); //prints 1286
return Py_None;


>>>a.flags.num
1285


-- 
View this message in context: http://www.nabble.com/Numpy-array-flags---BUG--tp19444726p19446563.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.



More information about the Numpy-discussion mailing list