On Tue, Apr 6, 2010 at 11:41, Antoine Pitrou <solipsis at 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100406/1695d7f6/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4