Re: [Numpy-discussion] Default values in scalar constructors

2006-09-26 Thread Travis Oliphant
Francesc Altet wrote: >Hi, > >Is there any reason why the next works for some types: > >In [26]: numpy.int32() >Out[26]: 0 > >In [27]: numpy.float64() >Out[27]: 0.0 > >but don't for the next others? > >In [28]: numpy.int16() >

[Numpy-discussion] Default values in scalar constructors

2006-09-26 Thread Francesc Altet
Hi, Is there any reason why the next works for some types: In [26]: numpy.int32() Out[26]: 0 In [27]: numpy.float64() Out[27]: 0.0 but don't for the next others? In [28]: numpy.int16() --- Traceback (most rece