<br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 9:18 AM, Richard Hattersley <span dir="ltr"><<a href="mailto:rhattersley@gmail.com" target="_blank">rhattersley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 21 June 2013 14:49, Charles R Harris <<a href="mailto:charlesr.harris@gmail.com">charlesr.harris@gmail.com</a>> wrote:<br>
> Bit short on detail here ;) How did you create/register the dtype?<br>
<br>
</div>The dtype is created/registered during module initialisation with:<br>
    dtype = PyObject_New(PyArray_Descr, &PyArrayDescr_Type);<br>
    dtype->typeobj = &Time360Type;<br>
    ...<br>
    PyArray_RegisterDataType(dtype)<br>
<br>
Where Time360Type is my new type definition:<br>
    static PyTypeObject Time360Type = { ... }<br>
which is initialised prior to the dtype creation.<br>
<br>
If the detail matters then should I assume this is unexpected<br>
behaviour and maybe I can fix my code so it works?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br>Hmm, that part looks ok.<br><br>Chuck <br></div></div>