[Numpy-tickets] [NumPy] #279: 'a' key should be added to typeDict
NumPy
numpy-tickets at scipy.net
Fri Sep 15 06:03:12 CDT 2006
#279: 'a' key should be added to typeDict
------------------------+---------------------------------------------------
Reporter: faltet | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: minor | Keywords:
------------------------+---------------------------------------------------
I think that typeDict should receive a new 'a' entry for string types. For
example, the next works:
{{{
In [12]: numpy.__version__
Out[12]: '1.0b5.dev3084'
In [13]: numpy.dtype('i2')
Out[13]: dtype('<i2')
In [14]: numpy.typeDict['i']
Out[14]: <type 'numpy.int32'>
}}}
but this don't
{{{
In [15]: numpy.dtype('a2')
Out[15]: dtype('|S2')
In [16]: numpy.typeDict['a']
---------------------------------------------------------------------------
<type 'exceptions.KeyError'> Traceback (most recent call
last)
/home/faltet/carabos/repositori/projectes/GESTA_2006/<ipython console> in
<module>()
<type 'exceptions.KeyError'>: 'a'
}}}
Thanks
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/279>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list