[Numpy-discussion] Time for a new release of NumPy

Travis Oliphant oliphant at ee.byu.edu
Fri Jan 20 14:28:04 EST 2006


Sasha wrote:

>On 1/19/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
>  
>
>>...
>>I don't think this is right.  zero-rank float arrays use Python's
>>floating-point str or repr function to produce the string, so whatever
>>Python is doing will be used.
>>    
>>
>
>Well, it looks like they use repr for str:
>
>  
>
>>>>from numpy import *
>>>>len(str(1/3.))
>>>>        
>>>>
>14
>  
>
>>>>len(str(array(1/3.)))
>>>>        
>>>>
>19
>  
>
>>>>len(repr(1/3.))
>>>>        
>>>>
>19
>
>  
>

O.K.  That is a bug.  And it is now fixed (an oversight...)

-Travis





More information about the NumPy-Discussion mailing list