Re: How do you get rid of useless warnings?

2008-10-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Martin Geisler wrote: > Take a look at the -W command line option to python. From the man page: > > -W argument > > The simplest form of argument is one of the following action > strings (or a unique abbreviation): ignore to ignore all warn-

Re: How do you get rid of useless warnings?

2008-10-07 Thread Jean-Paul Calderone
On Tue, 07 Oct 2008 14:12:06 -0400, Terry Reedy <[EMAIL PROTECTED]> wrote: Peter Otten wrote: Grant Edwards wrote: 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 rese

Re: How do you get rid of useless warnings?

2008-10-07 Thread Terry Reedy
Peter Otten wrote: Grant Edwards wrote: 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 The "with" and "as" warnings bypass the warnin

Re: How do you get rid of useless warnings?

2008-10-07 Thread Peter Otten
Grant Edwards wrote: > 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 The "with" and "as" warnings bypass the warning mechani

Re: How do you get rid of useless warnings?

2008-10-07 Thread Terry Reedy
Grant Edwards wrote: /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 I'm also not using "the next release" of scipy, I'm using _this_ release of scipy. I've no

Re: How do you get rid of useless warnings?

2008-10-07 Thread Grant Edwards
On 2008-10-07, Martin Geisler <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> 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 re

Re: How do you get rid of useless warnings?

2008-10-07 Thread Martin Geisler
Grant Edwards <[EMAIL PROTECTED]> 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/pyth

Re: How do you get rid of useless warnings?

2008-10-07 Thread skip
Grant> In the meantime, how do I get rid of this useless warning? I thought something like this would work: % python2.5 -W 'ignore:.*:Warning:.*:0' Python 2.5.3a0 (release25-maint:66627M, Sep 26 2008, 14:40:24) [GCC 4.2.2] on sunos5 Type "help", "copyright", "credits" or "lice

How do you get rid of useless warnings?

2008-10-07 Thread Grant Edwards
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: Deprecatio