<br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 1:07 PM, Travis Oliphant <span dir="ltr"><<a href="mailto:oliphant@enthought.com">oliphant@enthought.com</a>></span> wrote:<br><br><snip><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
</div>In the date-time case, it holds what frequency the integer in the data-<br>
type represents.    There will only be 2 new static data-types.<br>
"Datetime" and "Timedelta" that use 8 bytes each.<br>
<br>
What those 8 bytes represent will be determined by the metadata<br>
(years, months, seconds, etc...).<br>
<br>
But, generally, it will be an extra dictionary that can store anything<br>
you want (anybody want to define a "float" data-type that uses IBM<br>
format bits?).  The ufunc machinery needs to change to handle passing<br>
that information in somehow.   The approaches we take to doing that<br>
will also hopefully allow us to define ufuncs for string, unicode, and<br>
void * arrays as well.<br>
</blockquote><div><br>Hmm. I wonder if there could be a python program the loads conversion information into the dictionary when the module loads?<br><br>Chuck<br></div><br></div><br>