[Numpy-discussion] fixed-point arithmetic
Fri Sep 25 13:57:15 CDT 2009
Robert Kern wrote:
> On Mon, Sep 21, 2009 at 12:39, Neal Becker <firstname.lastname@example.org> wrote:
>> 1. Where would I find this new datetime dtype?
> It's in the SVN trunk.
>> 2. Don't know exactly what 'parameterized' dtypes are. Does this mean
>> that the dtype for 8.1 format fixed-pt is different from the dtype for
>> 6.2 format, for example?
> Yes. The dtype code letter is the same, but the dtype object has
> metadata attached to it in the form of a dictionary. The ufunc loops
> get references to the array objects and will look at the dtype
> metadata in order to figure out exactly what to do.
I'm still a bit confused. The dtype is a PyTypeObject? It almost sounds
like you're saying that the dtype is an PyObject instance, rather than a
TypeObject. But IIUC, you say it is a PyTypeObject, but one with an extract
dict attached (which kindof acts like an instance).
More information about the NumPy-Discussion