How do you get rid of useless warnings?
Grant Edwards
grante at visi.com
Tue Oct 7 11:46:30 EDT 2008
On 2008-10-07, Martin Geisler <mg at daimi.au.dk> wrote:
> Grant Edwards <grante at visi.com> writes:
>
>> I'm getting awfully tired of constant warnings about what's
>> going to happen at some point in the future.
>>
>> Warnings like this:
>>
>> ./surfplot.py:313: Warning: 'with' will become a reserved keyword in
>> Python 2.6
>>
>> And this:
>>
>> /usr/lib/python2.5/site-packages/scipy/linalg/__init__.py:32:
>> DeprecationWarning: NumpyTest will be removed in the next release;
>> please update your code to use nose or unittest
>>
>> And so on...
>
> Take a look at the -W command line option to python. From the
> man page:
I've -W options before without much luck, but I'll give it
another go. It certainly appears that should be the solution.
--
Grant Edwards grante Yow! World War III?
at No thanks!
visi.com
More information about the Python-list
mailing list