[Python-ideas] Non-intrusive debug logging

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jan 25 16:03:26 EST 2018


Steve Barnes wrote:
> I would suggest, however, that if this feature is introduced it be 
> controlled via a run-time switch &/or environment variable which 
> defaults to off.

I disagreew with defaulting it to off. That would encourage
lazy developers to distribute library code full of #l lines,
so that when you turn it on to debug something of your own,
you get swamped with someone else's debugging messages.

-- 
Greg


More information about the Python-ideas mailing list