[NumPy-Tickets] [NumPy] #1929: numpy.diff fails on unsigned integers

NumPy Trac numpy-tickets@scipy....
Sat Aug 13 13:42:19 CDT 2011


#1929: numpy.diff fails on unsigned integers
-------------------------------------------------+--------------------------
 Reporter:  tlatorre                             |       Owner:  somebody   
     Type:  defect                               |      Status:  new        
 Priority:  high                                 |   Milestone:  Unscheduled
Component:  numpy.lib                            |     Version:  1.6.0      
 Keywords:  unsigned, diff, numpy.diff, np.diff  |  
-------------------------------------------------+--------------------------

Comment(by charris):

 Subtracting unsigned numbers from each other is a well defined operation,
 so this is a case of user beware. However, it is probably not what is
 expected. I think adding a note to the doc string and maybe an example
 would clarify things. Or we could raise a warning. In the latter case
 there should first be some discussion on the mailing list.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1929#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list