[Scipy-tickets] [SciPy] #731: Strange subclassing behavior for `UnivariateSpline`

SciPy scipy-tickets@scipy....
Mon Nov 10 17:19:47 CST 2008

#731: Strange subclassing behavior for `UnivariateSpline`
 Reporter:  jguyer             |        Owner:  somebody
     Type:  defect             |       Status:  new     
 Priority:  normal             |    Milestone:  0.7.0   
Component:  scipy.interpolate  |      Version:          
 Severity:  normal             |   Resolution:          
 Keywords:                     |  
Comment (by pv):

 interpolate.UnivariateSpline does some horrible self.__class__
 assignments, which will mess up subclassing (and probably not only that).

 See scipy.interpolate.fitpack2.UnivariateSpline.reset_class().

 Now, this is IMHO not how it should work; the class-changing magick should
 be in __new__ or in a factory class method, or preferably completely
 absent, as the behaviour is quite surprising --- and I believe, not very

Ticket URL: <http://scipy.org/scipy/scipy/ticket/731#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list