[Python-ideas] Show deprecation warnings in the interactive interpreter

Antoine Pitrou solipsis at pitrou.net
Wed Feb 25 23:03:41 CET 2015


On Thu, 26 Feb 2015 07:35:17 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> 
> It may also be worthwhile introducing a "-Wmain" shorthand for
> "-Wdefault:::__main__", as I could see that being quite useful to
> system administrators, data analysts, et al, that want to know about
> deprecation warnings in their own custom scripts, but don't really
> care about deprecations in support libraries.

-1. This is making the "main script" special while code factored out in
another module won't benefit.
Furthermore there hasn't been any demand for this.

Regards

Antoine.




More information about the Python-ideas mailing list