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

Serhiy Storchaka storchaka at gmail.com
Wed Feb 25 20:23:14 CET 2015


On 25.02.15 19:49, Nathaniel Smith wrote:
> (NB that if we do this we'll run into another annoying problem with
> warnings and the REPL, which is that every line typed in the REPL is
> "line 1", so generally any given warning will only be produced once even
> if the offending behavior occurs in multiple different statements. This
> tends to really confuse users, since it means you can't use trial and
> error to figure out what was wrong with your code: whatever tweak you
> try first will always appear to fix the problem. Some more discussion of
> this issue here: https://github.com/ipython/ipython/pull/6680)

Every REPL input can be considered as different source.



More information about the Python-ideas mailing list