On Tue, Apr 6, 2010 at 11:41, Antoine Pitrou <solip...@pitrou.net> wrote:

> Brett Cannon <brett <at> 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.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to