[Numpy-tickets] [NumPy] #399: Short notation (typecode+size) for integers is not present in sctypeNA dict

NumPy numpy-tickets at scipy.net
Mon Dec 11 05:21:26 CST 2006


#399: Short notation (typecode+size) for integers is not present in sctypeNA dict
--------------------+-------------------------------------------------------
 Reporter:  faltet  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 Hi,

 sctypeNA does have entries for booleans, floats, complex short notation:

 {{{
 In [27]:numpy.sctypeNA['b1']
 Out[27]:'Bool'
 In [28]:numpy.sctypeNA['f4']
 Out[28]:'Float32'
 In [29]:numpy.sctypeNA['c8']
 Out[29]:'Complex32'
 }}}

 but not for integers:

 {{{
 In [30]:numpy.sctypeNA['i4']
 ---------------------------------------------------------------------------
 exceptions.KeyError                                  Traceback (most
 recent call last)

 /home/faltet/<ipython console>

 KeyError: 'i4'
 In [31]:numpy.sctypeNA['u4']
 ---------------------------------------------------------------------------
 exceptions.KeyError                                  Traceback (most
 recent call last)

 /home/faltet/<ipython console>

 KeyError: 'u4'
 }}}

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


More information about the Numpy-tickets mailing list