[SciPy-Dev] scipy.io cleanup
Charles R Harris
Thu Jun 17 19:16:56 CDT 2010
On Thu, Jun 17, 2010 at 5:57 PM, Ralf Gommers
> On Fri, Jun 18, 2010 at 1:14 AM, Matthew Brett <email@example.com>wrote:
>> On Wed, Jun 16, 2010 at 12:23 PM, Ralf Gommers
>> <firstname.lastname@example.org> wrote:
>> > A long list of functions in scipy.io was deprecated in 0.7 and has to
>> > removed now. It's in the 'io' branch at
>> > http://github.com/rgommers/scipy/commits/io now. In addition the
>> > module is deprecated as Matthew requested in another thread. Does
>> > want to have a quick look at it?
>> Sorry that I didn't do this myself - and thanks for doing it.
>> I noticed that your patch means that every import of scipy.io
>> generates a deprecation warning. This in turn was because I'm calling
>> the deprecated sctype_attributes in the Recaster class definition.
>> I've worked round this, version of your 'recaster' patch attached...
>> 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?
I don't know that we've done it before, but looks to be the best, maybe
only, way to do it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-Dev