[Numpy-tickets] [NumPy] #343: numpy.dtype(dtype, int) should raise an error

NumPy numpy-tickets at scipy.net
Fri Oct 13 02:53:06 CDT 2006


#343: numpy.dtype(dtype, int) should raise an error
--------------------+-------------------------------------------------------
 Reporter:  faltet  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  low     |   Milestone:          
Component:  Other   |     Version:  devel   
 Severity:  minor   |    Keywords:          
--------------------+-------------------------------------------------------
 Hi,

 The next is confusing to me:

 {{{
 In [37]:numpy.dtype('uint32', 342) == numpy.dtype('uint32')
 Out[37]:True
 }}}

 I'd either forbid passing two parameters to the dtype factory or make the
 next statements equivalent:

 {{{
 In [38]:numpy.dtype('uint32', 342) == numpy.dtype(('uint32',342))
 Out[38]:True    # It currently returns False
 }}}

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


More information about the Numpy-tickets mailing list