[SciPy-Dev] scipy.io cleanup
Matthew Brett
matthew.brett at gmail.com
Sat Jun 19 19:58:49 EDT 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