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

NumPy numpy-tickets at scipy.net
Thu Oct 5 05:17:54 CDT 2006


#317: Typo in records.py
--------------------+-------------------------------------------------------
 Reporter:  faltet  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 {{{
 --- numpy/core/records.py       2006-10-05 10:05:01.000000000 +0200
 +++ /usr/lib/python2.4/site-packages/numpy/core/records.py      2006-10-05
 12:16:04.000000000 +0200
 @@ -514,7 +514,7 @@
      elif isinstance(obj, recarray):
          copied = 0
 -        if dtype is not None and (new.dtype != dtype):
 +        if dtype is not None and (obj.dtype != dtype):
              new = obj.astype(dtype)
              copied = 1
          else:

 }}}

 Cheers,

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


More information about the Numpy-tickets mailing list