May 28, 2006
2:57 p.m.
Simon Burton wrote:
On Sun, 28 May 2006 14:36:47 -0600 Travis Oliphant <oliphant.travis@ieee.org> wrote:
Simon Burton wrote:
On Sun, 28 May 2006 14:33:37 -0500 Robert Kern <robert.kern@gmail.com> wrote:
if array.dtype == numpy.Int32: ...
numpy.int32
No that doesn't work.
Yeah, the "canonical" types (e.g. int32, float64, etc) are actually scalar objects. The type objects themselves are dtype(int32). I don't think they are currently listed anywhere in Python (except there is one for every canonical scalar object).
...
Can we promote the numarray names: Int32 etc. to their dtype equivalents ?
Perhaps. There is the concern that it might break Numeric compatibility, though. -Travis