[NumPy-Tickets] [NumPy] #1333: exclude ndarray operations __mul__, __pow__ etc

NumPy Trac numpy-tickets@scipy....
Sun Sep 5 15:35:45 CDT 2010


#1333: exclude ndarray operations __mul__, __pow__ etc
------------------------+---------------------------------------------------
 Reporter:  dmitrey     |       Owner:  somebody      
     Type:  defect      |      Status:  needs_decision
 Priority:  high        |   Milestone:                
Component:  numpy.core  |     Version:                
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by charris):

 For objects that don't inherit from ndarray or define the __array__
 method it is sufficient to simply define the __array_priority__ attribute,
 the value doesn't matter. That is what I ended up doing for the
 polynomials and I think that was the solution reached in the linked
 comment thread.

 Maybe we should bring this up on the list again just so we can see if the
 problems continue. Dag might have something to say relevant to Cython, he
 made some comments in the thread.

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


More information about the NumPy-Tickets mailing list