[SciPy-Dev] scipy.io cleanup

Matthew Brett matthew.brett@gmail....
Sat Jun 19 18:58:49 CDT 2010


Hi,

> Yeah I noticed that. Will use your fix, thanks. One other thing I wasn't
> sure about was the best way to deprecate a class. Since the deprecate
> decorator/function doesn't work on the class I applied it on the __init__
> method, is this the best way to do it?

It's not a bad way - you can also do it by old-fashioned decorator
usage - as in:

Recaster = deprecate(Recaster)

I suppose that has the advantage that it's relatively easy to spot in the code.

Best,

Matthew


More information about the SciPy-Dev mailing list