[Numpy-discussion] question about the data entry in the __array_interface__

Pauli Virtanen pav@iki...
Sun Apr 7 09:03:46 CDT 2013


07.04.2013 16:26, Valentin Haenel kirjoitti:
[clip]
> My question is: what is the correct type to use when using
> PyArg_ParseTuple to convert the value. 
[clip]

This is probably the most correct option:

http://docs.python.org/2/c-api/long.html#PyLong_AsVoidPtr

Not via ParseTuple, though.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list