[Python-ideas] Debugging: some problems and possible solutions

Jonathan Fine jfine2358 at gmail.com
Thu Oct 4 14:10:46 EDT 2018

In response to my problem-solution pair (fixing a typo)
> TITLE: Debug print() statements cause doctests to fail

Rhodri James wrote:
> Or write your debug output to stderr?

Perhaps I've been too concise. If so, I apologise. My proposal is that
the system be set up so that
    debug(a, b, c)
sends output to the correct stream, whatever it should be.

Rhodri:  Thank you for your contribution. Are you saying that because
the developer can write
    print(a, b, c, file=sys.stderr)
there's not a problem to solve here?

More information about the Python-ideas mailing list