|
From: Travis O. <oli...@ee...> - 2006-01-20 22:27:46
|
Sasha wrote: >On 1/19/06, Travis Oliphant <oli...@ie...> 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 |