<snip>

The relevant setting is in numpy/core/include/numpy/ndarraytypes.h

#define NPY_DEFAULT_ASSIGN_CASTING NPY_SAME_KIND_CASTING

I think that if we want to raise a warning we could define a new rule,

NPY_WARN_SAME_KIND_CASTING

Which would do the same as unsafe, only raise a warning on the way.

Chuck
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to