On 2011-07-28 07:50, Johan Råde wrote:
> How do I get the PyTypeObject* for a NumPy scalar type such as np.uint8?
>
> (The reason I'm asking is the following:
> I'm writing a C++ extension module. The Python interface to the module
> has a function f that takes a NumPy s
How do I get the PyTypeObject* for a NumPy scalar type such as np.uint8?
(The reason I'm asking is the following:
I'm writing a C++ extension module. The Python interface to the module
has a function f that takes a NumPy scalar type as an argument, for
instance f(np.uint8). Then the correspondin