[Python-Dev] "-Wd" switch (original) (raw)
[Python-Dev] "-Wd" switch
Brett Cannon brett at python.org
Tue Apr 6 23:17:28 CEST 2010
- Previous message: [Python-Dev] "-Wd" switch
- Next message: [Python-Dev] Python and compilers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Apr 6, 2010 at 11:41, Antoine Pitrou <solipsis at pitrou.net> wrote:
Brett Cannon <brett python.org> writes: > > > Nope, you got it right. A little bit of documentation is in > 2.7: http://docs.python.org/dev/library/warnings.html#updating-code-for-
It is a bit disturbing, though, that "-Wdefault" isn't the default setting. How could that oddity be solved?
Well, it needs to be understood that -Wdefault
is shorthand for -W default:.*:Warning:.*
plus whatever the wildcard is for line number. So the
"default" doesn't mean "default for when the interpreter starts up" but "the
default action for any warning". It's a shorthand that unfortunately reads
on an odd fashion when you do not realize what the expanded value means.
Best you can do is in the docs explain what it's shorthand for.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100406/1695d7f6/attachment.html>
- Previous message: [Python-Dev] "-Wd" switch
- Next message: [Python-Dev] Python and compilers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]