[Numpy-tickets] [NumPy] #296: All scalar constructors should return default values

NumPy numpy-tickets at scipy.net
Wed Sep 27 05:02:03 CDT 2006


#296: All scalar constructors should return default values
------------------------+---------------------------------------------------
 Reporter:  faltet      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  low         |   Milestone:  1.0 Release
Component:  numpy.core  |     Version:  devel      
 Severity:  minor       |    Keywords:             
------------------------+---------------------------------------------------
 Now, some scalar constructors without parameters do return defaults:

 {{{
 In [26]: numpy.int32()
 Out[26]: 0
 }}}

 but others don't:

 {{{
 In [28]: numpy.int16()
 ---------------------------------------------------------------------------
 <type 'exceptions.TypeError'>             Traceback (most recent call
 last)
 /home/faltet/python.nobackup/numpy/<ipython console> in <module>()
 <type 'exceptions.TypeError'>: function takes exactly 1 argument (0 given)
 }}}

 They all should return default values.

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/296>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list