[Python-ideas] Show deprecation warnings in the interactive interpreter (original) (raw)

Paul Moore p.f.moore at gmail.com
Wed Feb 25 11:21:05 CET 2015


On 25 February 2015 at 10:17, Chris Angelico <rosuav at gmail.com> wrote:

Agreed; the difference does need justification. Here's justification: Interactive execution places code and output right next to each other. The warning would be emitted right at the time when the corresponding code is entered.

On the other hand, what if "import <3rd party module>" flags a deprecation warning because of something the module author does? Certainly I can just ignore it (as it's "only" a warning) but it would get annoying pretty fast if I couldn't suppress it...

Paul



More information about the Python-ideas mailing list