[Numpy-discussion] type and kind for custom dtypes

Alex Samuel alex at alexsamuel.net
Sun May 5 11:03:23 EDT 2019

> On May 5, 2019, at 10:58, Alex Samuel <alex at alexsamuel.net> wrote:
> Through trial and error, I've found that if I choose an unused type code for each dtype, coercion seems to work as I expect it to (no coercion unless I've provided a cast).  The kind doesn't seem to matter.

Apologies, a correction: I mixed up kind and type above.  I meant that I've found I need to choose distinct kinds for the coercion rules to treat my dtypes as distinct, rather than the type.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190505/1d41d8af/attachment.html>

More information about the NumPy-Discussion mailing list