[Numpy-tickets] [NumPy] #310: Typo in records.py

NumPy numpy-tickets at scipy.net
Tue Oct 3 10:50:11 CDT 2006


#310: Typo in records.py
--------------------+-------------------------------------------------------
 Reporter:  faltet  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 Hi,

 You should have introduced a typo recently in records.py. The next is a
 patch for this:

 {{{
 --- /usr/local/lib/python2.5/site-packages/numpy/core/records.py~
 2006-10-03 17:27:22.000000000 +0200
 +++ /usr/local/lib/python2.5/site-packages/numpy/core/records.py
 2006-10-03 17:45:45.000000000 +0200
 @@ -291,7 +291,7 @@

      if dtype is not None:
          descr = sb.dtype(dtype)
 -        _names = dtype.names
 +        _names = descr.names
      else:
          parsed = format_parser(formats, names, titles, aligned,
 byteorder)
          _names = parsed._names

 }}}

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


More information about the Numpy-tickets mailing list