[NumPy-Tickets] [NumPy] #1893: Broadcasting shape mismatch exception

NumPy Trac numpy-tickets@scipy....
Tue Jul 5 11:36:32 CDT 2011


#1893: Broadcasting shape mismatch exception
-------------------------------------+--------------------------------------
 Reporter:  smif1984                 |       Owner:  somebody   
     Type:  defect                   |      Status:  new        
 Priority:  normal                   |   Milestone:  Unscheduled
Component:  numpy.core               |     Version:  1.6.0      
 Keywords:  Broadcasting, exception  |  
-------------------------------------+--------------------------------------

Comment(by mwiebe):

 I would start by first doing some reading about exception hierarchies in
 general. Python's particular choices are a great place to start because
 NumPy's exceptions will build on them. Other general writing on the topic
 will be helpful too.

 http://docs.python.org/library/exceptions.html#exception-hierarchy

 Then, I would investigate NumPy's current use of exceptions. There may be
 places where derived exception class are already used, but likely in a
 scattered, uncoordinated fashion. These need to be systematized.

 Next is the most subjective and creative part, where you would search for
 or come up with example usage that could be better with an improved
 hierarchy. This may involve collecting statistics about what ValueError,
 TypeError, and other standard exceptions are used for, trying to classify
 them and come up with appropriate categories based on that. Use your own
 creativity to come up with the approach which best suits your style. I'm
 sure there are many ways to do this, but hopefully my suggestions are a
 good start!

 Posting work in progress ideas to the mailing list while you're doing this
 can bring in ideas from many people that is very helpful as well.

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


More information about the NumPy-Tickets mailing list