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

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


On Wed, 25 Feb 2015 14:49:42 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:

> On 02/25/2015 02:44 PM, Antoine Pitrou wrote:
> 
> > There's nothing specific about "main scripts": every module suffers.
> 
> There may be nothing special about "main scripts", but there is something special about __main__: it's where
> hand-entered code runs when using the REPL.

Then let's make the REPL enable those warnings rather than entertain
new command-line arguments.

Regards

Antoine.




More information about the Python-ideas mailing list