[Python-ideas] Show deprecation warnings in the interactive interpreter
Brett Cannon
brett at python.org
Thu Feb 26 16:35:00 CET 2015
More information about the Python-ideas mailing list
Thu Feb 26 16:35:00 CET 2015
- Previous message: [Python-ideas] Show deprecation warnings in the interactive interpreter
- Next message: [Python-ideas] Show deprecation warnings in the interactive interpreter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Feb 25, 2015 at 5:40 PM Victor Stinner <victor.stinner at gmail.com> wrote: > Hi, > > Python has more and more options to emit warnings or enable more checks. > Maybe we need one global "strict" option to simply enable all checks and > warnings at once? > > For example, there are deprecation warnings, but also resource warnings. > Both should be enabled in the strict mode. Another example is the -bb > command line option (bytes watning). It should also be enabled. More > example: -tt (warnings on indentation). > > It can be a command line option, an environment variable and a function to > enable it. > > Perl has "use strict;". > > For the interactive interpreter, the strict code may be enabled by > default, but only if it's easy to disable it. > Regardless of this REPL discussions, having something like a --strict flag to switch on every single warning that you can switch on to its highest level would be handy to have. -Brett > > Victor > > Le mercredi 25 février 2015, Serhiy Storchaka <storchaka at gmail.com> a > écrit : > > What you are think about turning deprecation warnings on by default in the >> interactive interpreter? >> >> Deprecation warnings are silent by default because they just annoys end >> user that uses old Python program with new Python. End user usually is not >> a programmer and can't do something with warnings. But in the interactive >> interpreter the user is the author of executed code and can avoid to use >> deprecated functions if warned. >> >> _______________________________________________ >> Python-ideas mailing list >> Python-ideas at python.org >> https://mail.python.org/mailman/listinfo/python-ideas >> Code of Conduct: http://python.org/psf/codeofconduct/ >> > _______________________________________________ > Python-ideas mailing list > Python-ideas at python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150226/24970e96/attachment.html>
- Previous message: [Python-ideas] Show deprecation warnings in the interactive interpreter
- Next message: [Python-ideas] Show deprecation warnings in the interactive interpreter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list