[Numpy-discussion] first impressions with numpy

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 31 14:24:03 CST 2006


Sebastian Haase wrote:

> Hi,
> I'm a long time user of numarray. Now I downloaded numpy for the first 
> time - and am quite excited to maybe soon being able to use things 
> like weave !
> Thanks for all the good work !
>
> 1)
> I was following the discussion about dtype with interest, and so it 
> was one of the first things to check...
> >>> repr(aa.dtype)
> 'dtype('<i4')'
> >>> str(aa.dtype)
> ''<i4''
> >>> aa.dtype.name
> 'int32'
>
> Would it be possible to change str(aa.dtype) to aa.dtype.name  ??

It's definitely possible and probably a good idea for some of the 
builtin types.  

-Travis





More information about the Numpy-discussion mailing list