[SciPy-dev] scipy.splinalg or bust

Travis E. Oliphant oliphant at enthought.com
Fri Jan 25 23:08:52 EST 2008


Nathan Bell wrote:
> I've started migrating code to scipy.splinalg.
>
> Completed tasks:
>
>       (1) linalg.iterative -> splinalg.isolve
>            http://projects.scipy.org/scipy/scipy/changeset/3861
>
>            For backwards compatibility scipy.linalg imports all the
>            iterative solvers from  splinalg.isolve .  This is needed to
>            avoid breaking things like  'from scipy.linalg import cg'
>            What's the best way to inform the user that these functions
>            have moved?  Is there a nice way to decorate these functions
>            to issue a warning?
>   
Yes.

There are decorators in numpy specifically for this purpose.

deprecate_with_doc
deprecate


Thanks so much for tackling this one.  I look forward to the improved 
organization. 


-Travis O.





More information about the SciPy-Dev mailing list