How do you get rid of useless warnings?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Oct 7 17:00:10 EDT 2008


In message <87fxn8fnan.fsf at hbox.dyndns.org>, 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-
>         ings ...

Doesn't seem to work:

    ldo at theon:~> python -Wignore
    Python 2.5.2 (r252:60911, Sep  9 2008, 15:28:52)
    [GCC 4.2.4 (Gentoo 4.2.4 p1.0)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> with = 8
    <stdin>:1: Warning: 'with' will become a reserved keyword in Python 2.6
    >>>




More information about the Python-list mailing list