[Numpy-tickets] [NumPy] #396: poly1d hangs

NumPy numpy-tickets at scipy.net
Tue Dec 5 10:30:31 CST 2006

#396: poly1d hangs
 Reporter:  joris   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
 from numpy import *

 p = poly1d([nan,nan,1], r=0)


 The last command makes python hang, not even CTRL-C helps.
 In practice you don't give of course deliberately [nan,nan,1]
 as coefficients, but earlier in the code something may have
 gone wrong, so that the coefficients are not what is meant.
 I would expect then an ArithmeticError of poly1d rather than hanging.

 Versions: Python 2.5 + Numpy 1.0

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

More information about the Numpy-tickets mailing list