On May 14, 2009, at 1:42 AM, Dag Sverre Seljebotn wrote:

> What's the best way of increasing the warning level from a distutils
> setup.py?

Not sure, perhaps you can actually set the relevant module-level  
variable.

> (Just wasted an hour over doing
>
> <double*>arr.data
>
> when arr was typed as object instead of ndarray. Never again!)

Ouch.

Is there any reason to even allow this (other than to be backwards  
compatible with broken code). I think we should allow object <-->  
void*, or object <--> PyObject*, but no others. (One would then be  
forced to do <double*><void*>arr.data if one *really* wanted to.)

- Robert


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to