[Python-ideas] Displaying DeprecationWarnings in the interactive interpreter, second try
Ben Finney
ben+python at benfinney.id.au
Thu May 28 07:04:54 CEST 2015
Nick Coghlan <ncoghlan at gmail.com> writes:
> In addition to better alerting end users to genuinely imminent
> deprecations that they should adapt to ASAP, splitting them again in
> the interactive REPL case would restore a meaningful behavioural
> difference that can help pragmatically guide decisions as to which is
> more appropriate to use for a given deprecation:
>
> Test frameworks: both visible by default
> Interactive REPL: DW visible by default, PDW hidden by default
> Non-interactive execution: both hidden by default
Is there already a clear API for a “test framework” or “interactive
REPL” to declare itself as such?
Do all the test frameworks and interactive REPL implementations already
follow that API?
I ask this to know whether your proposal entails that each
implementation of a test framework or REPL will likely behave
differently from other implementations in how it fits into the above
categories.
--
\ “We have clumsy, sputtering, inefficient brains…. It is a |
`\ *struggle* to be rational and objective, and failures are not |
_o__) evidence for an alternative reality.” —Paul Z. Myers, 2010-10-14 |
Ben Finney
More information about the Python-ideas
mailing list