[NumPy-Tickets] [NumPy] #301: Make power and divide return floats from int inputs (like true_divide)

NumPy Trac numpy-tickets@scipy....
Thu Mar 31 10:03:49 CDT 2011


#301: Make power and divide return floats from int inputs (like true_divide)
-------------------------+--------------------------------------------------
 Reporter:  stefan       |       Owner:  somebody      
     Type:  enhancement  |      Status:  needs_decision
 Priority:  normal       |   Milestone:  Unscheduled   
Component:  numpy.core   |     Version:                
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by rgommers):

 That overloading will just lead to more confusion and errors made by
 users.

 I don't think anyone would be interested in integer powers and division
 functions, but if there's interest we could just and integer_divide()
 and/or integer_power(). Just returning floats from these functions is
 giving the expected result for the vast majority of users.

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


More information about the NumPy-Tickets mailing list